Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        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");
        }