public static ProjectDto FromModelToDto(ProjectModel model) { var dto = new ProjectDto(); dto.OwnerUserId = model.OwnerUserId; CopyIProjectItemModelMembers(dto, model); CopyProjectContainerItemsFromModelToDto(dto, model); return dto; }
public static ProjectModel FromDtoToModel(ProjectDto dto) { var model = new ProjectModel(); model.OwnerUserId = dto.OwnerUserId; CopyIProjectItemModelMembers(model, dto); CopyProjectContainerItemsFromDtoToModel(model, dto); return model; }
public static ProjectDto FromViewModelToModel(ProjectViewModel viewModel) { var model = new ProjectDto(); CopyProjectContainerMembersFromViewModelToModel(model, viewModel); return model; }
public static ProjectViewModel FromModelToViewModel(ProjectDto model) { var vm = new ProjectViewModel(); CopyProjectContainerMembersFromModelToViewModel(vm, model); return vm; }