//public override async Task<DepartmentDto> UpdateAsync(DepartmentDto input) //{ // Department output = mapper.Map<DepartmentDto, Department>(input); // // departmentManager.UpdateDepartment(output); // departmentManager.UpdateDepartment(output); // var department = await departmentManager.GetDepartmentByID(input.Id); // var outputDto = mapper.Map<Department, DepartmentDto>(department); // return outputDto; //} //public async Task Create(CreateDepartmentInput input) //{ // Department output = mapper.Map<CreateDepartmentInput, Department>(input); // await departmentManager.CreateDepartment(output); //} //public void Delete(DeleteDepartmentInput input) //{ // departmentManager.DeleteDepartment(input.Id); //} //public GetDepartmentOutput GetDepartmentById(GetDepartmentInput input) //{ // var getEmployee = departmentManager.GetDepartmentByID(input.Id); // GetDepartmentOutput output = mapper.Map<Department, GetDepartmentOutput>(getEmployee); // return output; //} public IEnumerable <GetDepartmentOutput> ListAll() { var getAll = departmentManager.GetAllList().ToList(); List <GetDepartmentOutput> output = mapper.Map <List <Department>, List <GetDepartmentOutput> >(getAll); return(output); }