generated from StraykerPL/PaternRepo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #146 from Strayker-Software/feature/113-provide-dt…
…o-for-transfer-between-api-and-application-layers Provide DTO for transfer between API and Application layers
- Loading branch information
Showing
32 changed files
with
511 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
binder-web-backend/Binder.Api/Mappings/DtoToCoreModelsMappingsProfile.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
using AutoMapper; | ||
using Binder.Api.Models; | ||
using Binder.Core.Models; | ||
|
||
namespace Binder.Api.Mappings | ||
{ | ||
public class DtoToCoreModelsMappingsProfile : Profile | ||
{ | ||
public DtoToCoreModelsMappingsProfile() | ||
{ | ||
CreateMap<ToDoTask, ToDoTaskDTO>() | ||
.ReverseMap(); | ||
CreateMap<DefaultTable, DefaultTableDTO>(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace Binder.Api.Models | ||
{ | ||
public class DefaultTableDTO | ||
{ | ||
public int Id { get; set; } | ||
public string Name { get; set; } | ||
|
||
public DefaultTableDTO() | ||
{ | ||
Name = string.Empty; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
namespace Binder.Api.Models | ||
{ | ||
public class ToDoTaskDTO | ||
{ | ||
public int Id { get; private set; } | ||
public string Name { get; set; } | ||
public string Description { get; set; } | ||
public bool IsCompleted { get; set; } | ||
|
||
public int TableId { get; set; } | ||
|
||
public ToDoTaskDTO() | ||
{ | ||
Name = string.Empty; | ||
Description = string.Empty; | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.