public IHttpActionResult PuttestLog(int id) { try { var testlog = bllService.UpdateTestLog(id); return(Ok()); } catch (Exception) { throw; } }
//[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")); } }