public ActionResult ManageBukuPartial(string status = "") { string loginName = User.Identity.Name; BukuManager BM = new BukuManager(); BukuDataView BDV = new BukuDataView(); BDV.BukuProfile = BM.GetBukuData(); string message = string.Empty; if (status.Equals("update")) { message = "Update Sukses"; } else if (status.Equals("delete")) { message = "Hapus Sukses"; } ViewBag.Message = message; return(PartialView(BDV)); }
public ActionResult ManageBukuPartial(string status = "") { //if (User.Identity.IsAuthenticated) //{ string loginName = User.Identity.Name; BukuManager KM = new BukuManager(); BukuDataView KDV = new BukuDataView(); KDV.BukuProfile = KM.GetBukuData(); string message = string.Empty; if (status.Equals("update")) { message = "Update Successful"; } else if (status.Equals("delete")) { message = "Delete Successful"; } ViewBag.Message = message; return(PartialView(KDV)); //} // return RedirectToAction("Index", "Home"); }