public JsonResult Create(SexualLife model)
 {
     if (ModelState.IsValid)
     {
         try
         {
             //model.RecordUser = base.CurrentLoginUser().UserName;
             if (string.IsNullOrWhiteSpace(model.SexualLifeContent))
                 model.SexualLifeContent = "[]";
             bool jsonResult = this.superService.Insert<SexualLife>(model); //  SuperManager.Instance.Create<SexualLife>(model);
             BootstrapMvc2015GitHub.Framework.Log.Instance.RecordActionLog(new System.Diagnostics.StackFrame(0).GetMethod().Name, this.ServiceKey, "PersonTools", jsonResult);
             return Json(new
             {
                 result = jsonResult,
                 text = jsonResult ? "One record created successfully!" : "something was wrong!",
                 callbackapi = "PersonTools/SexualLife"
             });
         }
         catch (Exception ex)
         {
             BootstrapMvc2015GitHub.Framework.Log.Instance.RecordActionLog(new System.Diagnostics.StackFrame(0).GetMethod().Name, this.ServiceKey, "PersonTools", false, ex.Message);
             throw ex;
         }
     }
     throw new Exception("ModelState.IsValid is false");
 }
 public JsonResult Update(SexualLife model)
 {
     if (ModelState.IsValid)
     {
         try
         {
             bool jsonResult = this.superService.Update<SexualLife>(model); // SuperManager.Instance.Update<SexualLife>(model);
             BootstrapMvc2015GitHub.Framework.Log.Instance.RecordActionLog(new System.Diagnostics.StackFrame(0).GetMethod().Name, this.ServiceKey, "PersonTools", jsonResult);
             return Json(new
             {
                 result = jsonResult,
                 text = jsonResult ? "record  updated successfully!" : "something was wrong!",
                 callbackapi = "PersonTools/SexualLife"
             });
         }
         catch (Exception ex)
         {
             BootstrapMvc2015GitHub.Framework.Log.Instance.RecordActionLog(new System.Diagnostics.StackFrame(0).GetMethod().Name, this.ServiceKey, "PersonTools", false, ex.Message);
             throw ex;
         }
     }
     else
         throw new Exception("ModelState.IsValid is false");
 }