Пример #1
0
        public JsonResult AddChildSkill()
        {
            ViewBag.MainSkill = _sharedService.GetDropDownData(Enums.LookUpTable.MainSkill);
            string htmlMainSkill = CustomPartialView.RenderPartialViewToString(this, Enums.PartialView.AddEditChildSkill, new ChildSkill());

            return(Json(new { modalBodyHtml = htmlMainSkill, modalHeader = CommonFunc.GetModalActionHeader(Enums.ScreenNames.ChildSkill, Enums.Actions.Add) }, JsonRequestBehavior.AllowGet));
        }
Пример #2
0
        public JsonResult EditMainSkill(int id)
        {
            Result <MainSkill> result = _adminService.EditMainSkill(id);
            var htmlMainSkill         = CustomPartialView.RenderPartialViewToString(this, Enums.PartialView.AddEditMainSkill, result.Data);

            return(Json(new { modalBodyHtml = htmlMainSkill, modalHeader = CommonFunc.GetModalActionHeader(Enums.ScreenNames.MainSkill, Enums.Actions.Edit) }, JsonRequestBehavior.AllowGet));
        }
Пример #3
0
        public JsonResult EditChildSkill()
        {
            ChildSkill childSkill = new ChildSkill();

            childSkill.ChildSkillName = "Test";

            var htmlMainSkill = CustomPartialView.RenderPartialViewToString(this, Enums.PartialView.AddEditChildSkill, childSkill);

            return(Json(new { modalBodyHtml = htmlMainSkill, modalHeader = CommonFunc.GetModalActionHeader(Enums.ScreenNames.ChildSkill, Enums.Actions.Edit) }, JsonRequestBehavior.AllowGet));
        }
Пример #4
0
        public JsonResult AddMainSkill()
        {
            string htmlMainSkill = CustomPartialView.RenderPartialViewToString(this, Enums.PartialView.AddEditMainSkill, new MainSkill());

            return(Json(new { modalBodyHtml = htmlMainSkill, modalHeader = CommonFunc.GetModalActionHeader(Enums.ScreenNames.MainSkill, Enums.Actions.Add) }, JsonRequestBehavior.AllowGet));
        }
        public JsonResult LoginModalPopUp()
        {
            string htmlMainSkill = CustomPartialView.RenderPartialViewToString(this, Enums.PartialView.Login, new UserLogin());

            return(Json(new { modalBodyHtml = htmlMainSkill, modalHeader = CommonFunc.GetModalActionHeader(Enums.ScreenNames.Login) }, JsonRequestBehavior.AllowGet));
        }