public JsonResult UpdatePassword(ChangePasswordModel cpm)
        {
            MainRepoistory mps      = new MainRepoistory();
            string         finalres = string.Empty;

            try
            {
                finalres = mps.UpdatePassword(cpm);
                JavaScriptSerializer json_serializer = new JavaScriptSerializer();
                var res = JsonConvert.DeserializeObject <ChangePasswordResult>(finalres);
                return(Json(res, JsonRequestBehavior.AllowGet));
            }
            catch (Exception ex)
            {
                finalres = ex.Message.ToString();
                ErrorWriter.WriteLog(ex.GetType()?.ToString(), ex.GetType()?.Name?.ToString(), ex.InnerException?.ToString(), "UpdatePassword", "StartController");
                return(Json(finalres, JsonRequestBehavior.AllowGet));
            }
        }