public static ProjectAssignedItemDto Map(ProjectAssignedItemViewModel view) { return(new ProjectAssignedItemDto { Id = view.Id, Amount = view.Amount, Price = view.Price, Item = ItemMapper.Map(view.Item), ItemID = view.ItemId, ProjectId = view.ProjectId }); }
public static ProjectAssignedItemViewModel Map(ProjectAssignedItemDto dto) { return(new ProjectAssignedItemViewModel { Id = dto.Id, Amount = dto.Amount, Price = dto.Price, Item = ItemMapper.Map(dto.Item), ItemId = dto.ItemID, ProjectId = dto.ProjectId }); }