Skip to content

Commit

Permalink
remove code redundancy , follow DRY
Browse files Browse the repository at this point in the history
  • Loading branch information
nixhantb committed Dec 10, 2023
1 parent 7977c11 commit 2297e47
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
6 changes: 6 additions & 0 deletions JobLeet.WebApi/JobLeet.Api/Models/Jobs/V1/Application.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace JobLeet.WebApi.JobLeet.Api.Models.Jobs.V1
{
public class Application
{
}
}
4 changes: 1 addition & 3 deletions JobLeet.WebApi/JobLeet.Core/Entities/Common/V1/Date.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
{
public class Date : BaseEntity
{
public DateTime CreatedAt { get; set; }
public DateTime ModifiedAt { get; set; }
public DateTime DeletedAt { get; set; }

}
}
6 changes: 0 additions & 6 deletions JobLeet.WebApi/JobLeet.Core/Entities/Jobs/V1/Application.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,13 @@ namespace JobLeet.WebApi.JobLeet.Core.Entities.Jobs.V1
public class Application : BaseEntity
{
[ForeignKey("Employer")]
public int EmployerId { get; set; }
public Employer Employer { get; set; }

[ForeignKey("Job")]
public int JobId { get; set; }
public Job Job { get; set; }

[ForeignKey("Status")]
public int StatusId { get; set; }
public Status Status { get; set; }

[ForeignKey("Date")]
public int DateId { get; set; }
public Date Date { get; set; }
}
}

0 comments on commit 2297e47

Please sign in to comment.