public ActionResult Index(OrderDemo model) { try { if (ModelState.IsValid) { ObjOrderDemoService.Add(model); TempData["Message"] = "Thankyou for your information. We will contact you soon..!!"; } else { return View(model); } return RedirectToAction("Index"); } catch { return View(); } }
public OrderDemo Update(OrderDemo entity) { throw new System.NotImplementedException(); }
public void Delete(OrderDemo entity) { throw new System.NotImplementedException(); }
public OrderDemo Add(OrderDemo entity) { entity = repository.Add(entity); unitOfWork.Commit(); return entity; }