Beispiel #1
0
        public ActionResult Delete(int id)
        {
            AdminUserPartialBLL objAdminUserPartialBll = new AdminUserPartialBLL();
            var adminUser = objAdminUserPartialBll.GetAdminUser(id);

            return(View(adminUser));
        }
Beispiel #2
0
        public ActionResult DeleteAdminUser(int id)
        {
            bool status = false;

            if (ModelState.IsValid)
            {
                AdminUserPartialBLL objAdminUserPartialBll = new AdminUserPartialBLL();
                objAdminUserPartialBll.DeleteAdminUser(id);

                status = true;
            }
            return(new JsonResult {
                Data = new { status = status }
            });
        }
Beispiel #3
0
        public ActionResult Edit(AdminUserPartial objAdminUserPartial)
        {
            bool status = false;

            if (ModelState.IsValid)
            {
                AdminUserPartialBLL objAdminUserPartialBll = new AdminUserPartialBLL();

                objAdminUserPartialBll.UpdateAdminUser(objAdminUserPartial);

                status = true;
            }
            return(new JsonResult {
                Data = new { status = status }
            });
        }