public async Task <ValidationResult <SellerOrder> > CreateSellerOrder(SellerOrder sellerOrder) { var validationResult = new ValidationResult <SellerOrder>(); try { await _dataService.CreateAsync(sellerOrder); validationResult.Entity = sellerOrder; validationResult.Succeeded = true; } catch (Exception ex) { validationResult.Succeeded = false; validationResult.Errors = new List <string> { ex.InnerMessage() }; validationResult.Exception = ex; } return(validationResult); }