public async Task <HttpResponseMessage> EditOutlet(OutletDetail outlet) { var message = CreateMessageData($"outlet"); if (!ModelState.IsValid) { return(CreateValidationErrorResponse(message, new ValidationResult(Validation.InvalidParameters))); } var result = await _outletService.PutOutlet(outlet); if (!result.IsSuccess) { return(CreateValidationErrorResponse(message, new ValidationResult(result.message))); } return(CreateOkResponse(message, outlet)); }