public ActionResult ClassesManageDelete(int id) { try { var dto = new EntityDto <long>() { Id = id }; classesinfoService.DeleteClassesInfoAsync(dto); return(Success()); } catch { return(View()); } }