public virtual async Task <DepartmentDto> CreateAsync(DepartmentCreateDto input) { var department = ObjectMapper.Map <DepartmentCreateDto, Department>(input); department = await DepartmentRepository.InsertAsync(department); return(ObjectMapper.Map <Department, DepartmentDto>(department)); }
public async Task <DepartmentDto> CreateAsync(DepartmentCreateDto input) { return(await DepartmentAppService.CreateAsync(input)); }