generated from amosproj/amos202Xss0Y-projname
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jan Tiegges <[email protected]>
- Loading branch information
1 parent
6dbc7be
commit 44ba09e
Showing
4 changed files
with
65 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System.ComponentModel.DataAnnotations; | ||
using AutoMapper; | ||
|
||
namespace Deskstar.Models; | ||
|
||
public class CompanyDto | ||
{ | ||
public static void createMappings(IMapperConfigurationExpression cfg) | ||
{ | ||
cfg.CreateMap<Entities.Company, CompanyDto>(); | ||
} | ||
public CompanyDto() | ||
{ | ||
|
||
} | ||
|
||
[Required] | ||
public string CompanyId { get; set; } = null!; | ||
[Required] | ||
public string CompanyName { get; set; } = null!; | ||
} |
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