Example #1
0
        public ActionResult Deactive(RoleViewModel model)
        {
            var userid = (long)Session["userid"];
            ResponResultViewModel result = RoleRepo.Deactive(model, userid);

            return(Json(new
            {
                success = result.Success,
                message = result.Message,
                entity = result.Entity
            }, JsonRequestBehavior.AllowGet));
        }