public ActionResult GetLatestDocName(int Type) { ModelImple.LookUps _LookUps = new ModelImple.LookUps(); PLog.Info("BEGIN::Controller > GridStock, Method > GetLatestDocName(int Type)"); string str = ""; try { if (Type > 0) { str = _LookUps.GetDocName(Type); } } catch (Exception ex) { PLog.Error("Error::Controller >GridStock, Method > GetLatestDocName(int Type)", ex); } PLog.Info("END::Controller > GridStock, Method > GetLatestDocName(int Type)"); return(Content(str)); }
public ActionResult ChangePassword(string CurrentPassword, string NewPassword) { PLog.Info("BEGIN::Controller > Home, Method > ChangePasswordView(string CurrentPassword, string NewPassword)"); long ret = 0; if (!string.IsNullOrEmpty(CurrentPassword) && !string.IsNullOrEmpty(NewPassword)) { try { UsersImple objUsersImple = new UsersImple(); ModelImple.LookUps _LookUps = new ModelImple.LookUps(); ret = objUsersImple.ChangePassword(CurrentPassword, NewPassword, Convert.ToInt32(_LookUps.GetSessionObject("UserID"))); } catch (Exception ex) { PLog.Error("Error::Controller > Home, Method > ChangePasswordView(string CurrentPassword, string NewPassword)", ex); } } PLog.Info("END::Controller > Home, Method >ChangePasswordView(string CurrentPassword, string NewPassword)"); return(Content(ret.ToString())); }