Example #1
0
 public ActionResult <bool> Put([FromBody] Param param)
 {
     if (DAParam.Update(param, out error))
     {
         return(new CreatedAtRouteResult(null, null, true));
     }
     return(BadRequest(error));
 }
Example #2
0
 public bool Param_Modified(Param Item, out LogError logError)
 {
     try
     {
         return(DAParam.Update(Item, out logError));
     }
     catch (Exception ex)
     {
         myServiceData.Result       = false;
         myServiceData.ErrorMessage = "unforeseen error occured. Please try later.";
         myServiceData.ErrorDetails = ex.ToString();
         throw new FaultException <ServiceData>(myServiceData, ex.ToString());
     }
 }