public async Task <HttpResponseMessage> GetNumOfBedAndTherapistByOutlet(int id) { var message = CreateMessageData($"BedAndTherapistNum/{id}", new KeyValuePair <string, string>("outletID", id.ToString())); var numBedTherapist = await _outletService.GetNumOfBedAndTherapistByOutlet(id); if (!numBedTherapist.IsSuccess) { return(CreateValidationErrorResponse(message, new ValidationResult(numBedTherapist.message))); } if (numBedTherapist.Result == null) { return(CreateNotFoundResponse(message, Validation.FileNotFound)); } return(CreateOkResponse(message, numBedTherapist.Result)); }