Exemplo n.º 1
0
 public IHttpActionResult SetDocketActionItemComplete([FromBody] int actionItemId)
 {
     try
     {
         DataWriter dw     = new DataWriter();
         bool       result = dw.DocketActionItemSetComplete(actionItemId);
         if (result)
         {
             return(Ok());
         }
         else
         {
             return(StatusCode(HttpStatusCode.BadRequest));
         }
     }
     catch (Exception e)
     {
         if (e.InnerException != null)
         {
             return(InternalServerError(e.InnerException));
         }
         return(InternalServerError(e));
     }
 }