示例#1
0
 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));
     }
 }
示例#2
0
 public ActionResult deleteStudents()
 {
     try
     {
         StudentClient tableStorage = new StudentClient();
         tableStorage.DeleteTable();
         return(Content("ok"));
     }
     catch (Exception ex)
     {
         return(new HttpStatusCodeResult(HttpStatusCode.NotFound, ex.Message));
     }
 }