public ActionResult Edit(int id, BLL.Model.SalesDTO Sales) { try { operations.UpdateSale(Sales); return(RedirectToAction("Index")); } catch { return(View()); } }
public ActionResult Create(BLL.Model.SalesDTO sales) { try { operations.AddSale(sales); return(RedirectToAction("Index")); } catch { return(View()); } }