Example #1
0
        public async Task <DepartmentDto> UpdateAsync(long id, DepartmentUpdateDto input)
        {
            var department = await DepartmentRepository.GetByIdAsync(id);

            department.Name         = input.Name;
            department.EmailAddress = input.EmailAddress;

            return(ObjectMapper.Map <Department, DepartmentDto>(department));
        }
Example #2
0
 public Task <DepartmentDto> UpdateAsync(long id, DepartmentUpdateDto input)
 {
     throw new NotImplementedException();
 }