Exemple #1
0
 public IHttpActionResult PuttestLog(int id)
 {
     try
     {
         var testlog = bllService.UpdateTestLog(id);
         return(Ok());
     }
     catch (Exception)
     {
         throw;
     }
 }
Exemple #2
0
 //[ResponseType(typeof(void))]
 public IHttpActionResult PuttestLog(int id)
 {
     try
     {
         bool testlog = bllService.UpdateTestLog(id);
         if (testlog)
         {
             return(Ok());
         }
         else
         {
             return(BadRequest());
         }
     }
     catch (Exception)
     {
         return(BadRequest("Exception has occured"));
     }
 }