public virtual IActionResult ApiStandardsApplicableDelete([FromBody][Required] Solution solution) { try { var solutionGet = _datastore.ById(solution.Id.ToString()); if (solutionGet.Id == Guid.Empty) { return(StatusCode(404)); } _datastore.Delete(solution); } catch (Crm.CrmApiException ex) { return(StatusCode((int)ex.HttpStatus, ex.Message)); } return(StatusCode(200)); }
public void Delete(Solutions solution) { _validator.ValidateAndThrowEx(solution, ruleSet: nameof(ISolutionsLogic.Delete)); _datastore.Delete(solution); }