public async Task <ApiResponse> GetOfficeByName(string name) { var office = await _officeRepo.FindOfficeByName(name); if (office == null) { return(new ApiResponse(404)); } var officeTransferDTOs = _mapper.Map <OfficeTransferDTO>(office); return(new ApiOkResponse(officeTransferDTOs)); }