public async Task <ApiResponse> GetServiceById(long id) { var service = await _servicesRepository.FindServicesById(id); if (service == null) { return(new ApiResponse(404)); } var serviceTransferDTO = _mapper.Map <ServicesTransferDTO>(service); return(new ApiOkResponse(serviceTransferDTO)); }