public IActionResult Create([FromBody] ClaimedStandard claimedstandard)
 {
     try
     {
         var newStd = _logic.Create(claimedstandard);
         return(new OkObjectResult(newStd));
     }
     catch (Exception ex)
     {
         return(new NotFoundObjectResult(ex));
     }
 }
 public IActionResult Delete([FromBody] ClaimedStandard claimedstandard)
 {
     try
     {
         _logic.Delete(claimedstandard);
         return(new OkResult());
     }
     catch (Exception ex)
     {
         return(new NotFoundObjectResult(ex));
     }
 }
 public void Delete(ClaimedStandard claimedstandard)
 {
     _validator.ValidateAndThrow(claimedstandard);
     _datastore.Delete(claimedstandard);
 }
 public ClaimedStandard Create(ClaimedStandard claimedstandard)
 {
     _validator.ValidateAndThrow(claimedstandard);
     return(_filter.Filter(new[] { _datastore.Create(claimedstandard) }.AsQueryable()).SingleOrDefault());
 }