예제 #1
0
 public ActionResult DeletePartial(ShopMaster shop)
 {
     shop.Status     = "InActive";
     shop.ModifiedOn = DateTime.Now;
     _shopService.Update(shop);
     return(RedirectToAction("ShopDetails/" + Convert.ToInt32(shop.ShopId), "Shop"));
 }
예제 #2
0
 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"));
 }
예제 #3
0
 public void Update(ShopMaster shop)
 {
     _shopRepository.Update(shop);
     _unitOfWork.Commit();
 }
예제 #4
0
 public void Delete(ShopMaster shop)
 {
     _shopRepository.Delete(shop);
     _unitOfWork.Commit();
 }
예제 #5
0
 public void Create(ShopMaster shop)
 {
     _shopRepository.Add(shop);
     _unitOfWork.Commit();
 }