public ActionResult DeleteStudents() { try { StudentClient tableStorage = new StudentClient(); tableStorage.DeleteTable(); return(Content(JsonConvert.SerializeObject(new { }), "application/json")); } catch (Exception ex) { return(new HttpStatusCodeResult(HttpStatusCode.NotFound, ex.Message)); } }
public ActionResult deleteStudents() { try { StudentClient tableStorage = new StudentClient(); tableStorage.DeleteTable(); return(Content("ok")); } catch (Exception ex) { return(new HttpStatusCodeResult(HttpStatusCode.NotFound, ex.Message)); } }