Skip to content
This repository has been archived by the owner on Oct 14, 2022. It is now read-only.

refactor: use company id for UserExperienceReq #31

Merged
merged 3 commits into from
Jun 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion WAW.API/Auth/Resources/UserExperienceRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ public class UserExperienceRequest {

public ExternalImageRequest? Image { get; set; }

public CompanyRequest? Company { get; set; }
public long? CompanyId { get; set; }
}
1 change: 1 addition & 0 deletions WAW.API/Auth/Resources/UserProjectResource.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
namespace WAW.API.Auth.Resources;

public class UserProjectResource {
public long Id { get; set; }
public string Title { get; set; } = string.Empty;
public string Summary { get; set; } = string.Empty;
public DateTime Date { get; set; }
Expand Down
2 changes: 2 additions & 0 deletions WAW.API/Employers/Controllers/CompaniesController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using AutoMapper;
using Microsoft.AspNetCore.Mvc;
using Swashbuckle.AspNetCore.Annotations;
using WAW.API.Auth.Authorization.Attributes;
using WAW.API.Employers.Domain.Services;
using WAW.API.Employers.Resources;
using WAW.API.Shared.Extensions;
Expand All @@ -10,6 +11,7 @@ namespace WAW.API.Employers.Controllers;

using Domain.Models;

[Authorize]
[ApiController]
[Route("[controller]")]
[Produces(MediaTypeNames.Application.Json)]
Expand Down
2 changes: 2 additions & 0 deletions WAW.API/Job/Controllers/OffersController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
using AutoMapper;
using Microsoft.AspNetCore.Mvc;
using Swashbuckle.AspNetCore.Annotations;
using WAW.API.Auth.Authorization.Attributes;
using WAW.API.Job.Domain.Models;
using WAW.API.Job.Domain.Services;
using WAW.API.Job.Resources;
using WAW.API.Shared.Extensions;

namespace WAW.API.Job.Controllers;

[Authorize]
[ApiController]
[Route("[controller]")]
[Produces(MediaTypeNames.Application.Json)]
Expand Down