public string _ExpFormView(jpexperience model)
        {
            jpuser SessionUser = GetSessionUser();

            if (model != null)
            {
                if (SessionUser != null)
                {
                    if (SessionUser.objjpprofile != null)
                    {
                        if (SessionUser.objjpprofile.lstjpexperience != null)
                        {
                            model.PROFILEID = SessionUser.objjpprofile.PROFILEID;
                            if (model.EXPID == 0)
                            {
                                model.EXPID = GetTempID(SessionUser.objjpprofile.lstjpexperience);
                            }
                            else
                            {
                                jpexperience obj = SessionUser.objjpprofile.lstjpexperience.Find(a => a.EXPID == model.EXPID);
                                if (obj != null)
                                {
                                    SessionUser.objjpprofile.lstjpexperience.Remove(obj);
                                }
                            }
                            SessionUser.objjpprofile.lstjpexperience.Add(model);
                            return(Shared.Constants.MSG_SUCCESS.Text);
                        }
                    }
                }
            }
            return(Shared.Constants.MSG_ERROR.Text);
        }
        public ActionResult _ExpFormView(string id)
        {
            jpuser SessionUser = GetSessionUser();

            if (!string.IsNullOrEmpty(id))
            {
                if (SessionUser != null)
                {
                    if (SessionUser.objjpprofile != null)
                    {
                        if (SessionUser.objjpprofile.lstjpexperience != null)
                        {
                            jpexperience obj = SessionUser.objjpprofile.lstjpexperience.Find(q => q.EXPID == int.Parse(id) && q.PROFILEID.Equals(SessionUser.objjpprofile.PROFILEID));
                            if (obj != null)
                            {
                                return(PartialView(obj));
                            }
                        }
                    }
                }
            }
            return(PartialView(new jpexperience()
            {
                isNewRecord = Shared.Constants.STR_YES
            }));
        }
        public string _ExpRecRemove(string id)
        {
            jpuser SessionUser = GetSessionUser();

            if (!string.IsNullOrEmpty(id))
            {
                if (SessionUser != null)
                {
                    if (SessionUser.objjpprofile != null)
                    {
                        if (SessionUser.objjpprofile.lstjpexperience != null)
                        {
                            jpexperience obj = SessionUser.objjpprofile.lstjpexperience.Find(q => q.EXPID == int.Parse(id) && q.PROFILEID.Equals(SessionUser.objjpprofile.PROFILEID));
                            if (obj != null)
                            {
                                if (int.Parse(id) > 0)
                                {
                                    var ret = jpexperienceManager.Deletejpexperience(obj.EXPID);
                                    if (ret.Equals(Shared.Constants.MSG_OK_DBSAVE.Text))
                                    {
                                        SessionUser.objjpprofile.lstjpexperience.Remove(obj);
                                        return(Shared.Constants.MSG_SUCCESS.Text);
                                    }
                                }
                                else
                                {
                                    SessionUser.objjpprofile.lstjpexperience.Remove(obj);
                                    return(Shared.Constants.MSG_SUCCESS.Text);
                                }
                            }
                        }
                    }
                }
            }
            return(Shared.Constants.MSG_ERROR.Text);
        }