public ActionResult Delete(int id) { try { StoreLogic.DeleteStore(id); return(Json(new { IsSucceeded = true })); } catch { return(Json(new { IsSucceeded = false })); } }
public ActionResult Delete(StoreViewModel model) { StoreLogic.DeleteStore(model.Id); return(RedirectToAction("Index")); }