public ActionResult DeletePartial(ShopMaster shop) { shop.Status = "InActive"; shop.ModifiedOn = DateTime.Now; _shopService.Update(shop); return(RedirectToAction("ShopDetails/" + Convert.ToInt32(shop.ShopId), "Shop")); }
public ActionResult EditPartial(ShopMaster shop) { shop.Status = "Active"; shop.ModifiedOn = DateTime.Now; _shopService.Update(shop); TempData["ShopList"] = _shopService.GetAll(); return(RedirectToAction("ShopDetails/" + shop.ShopId, "Shop")); }
public void Update(ShopMaster shop) { _shopRepository.Update(shop); _unitOfWork.Commit(); }
public void Delete(ShopMaster shop) { _shopRepository.Delete(shop); _unitOfWork.Commit(); }
public void Create(ShopMaster shop) { _shopRepository.Add(shop); _unitOfWork.Commit(); }