Пример #1
0
 public static ProjectUsedItemDto Map(ProjectUsedItem projectItem)
 {
     return(new ProjectUsedItemDto
     {
         Id = projectItem.Id,
         Amount = projectItem.Amount,
         Price = projectItem.Price,
         Item = ItemMapper.Map(projectItem.Item),
         ItemID = projectItem.ItemID,
         ProjectId = projectItem.ProjectId
     });
 }
Пример #2
0
 public static ProjectUsedItem Map(ProjectUsedItemDto dto)
 {
     return(new ProjectUsedItem
     {
         Id = dto.Id,
         Amount = dto.Amount,
         Price = dto.Price,
         Item = ItemMapper.Map(dto.Item),
         ItemID = dto.ItemID,
         ProjectId = dto.ProjectId
     });
 }