public virtual async Task <ActionResult> Delete(Guid id, Group model) { try { // TODO: Add delete logic here await GroupCore.GetAsync(id); await GroupCore.DeleteAsync(model); return(RedirectToAction("Index")); } catch { return(View()); } }
// GET: Group/Delete/5 public virtual async Task <ActionResult> Delete(Guid id) { var std = await GroupCore.GetAsync(id); return(View(std)); }