public CommonDbResponse AssignRole(ChangePasswordCommon model) { CommonDbResponse r = new CommonDbResponse(); // initialize api feature var sql = "Exec sproc_user_detail "; sql += " @flag='r'"; sql += ", @user_id=" + dao.FilterString(model.UserName); sql += ", @role_id=" + dao.FilterString(model.RoleId); sql += ", @action_user = "******", @updated_ip=" + dao.FilterString(model.IpAddress); //sql += ", @actionbrowser=" + dao.FilterString(model.BrowserInfo); r = dao.ParseCommonDbResponse(sql); return(r); }
public CommonDbResponse ChangeUserPassword(ChangePasswordCommon model) { CommonDbResponse r = new CommonDbResponse(); // initialize api feature var sql = "Exec sproc_user_detail "; sql += " @flag='changeuserpwd'"; sql += ", @password="******", @confirm_password="******", @user_id=" + dao.FilterString(model.UserName); sql += ", @action_user = "******", @updated_ip=" + dao.FilterString(model.IpAddress); //sql += ", @actionbrowser=" + dao.FilterString(model.BrowserInfo); r = dao.ParseCommonDbResponse(sql); return(r); }
public CommonDbResponse ChangeUserPassword(ChangePasswordCommon model) { return(repo.ChangeUserPassword(model)); }
public CommonDbResponse AssignRole(ChangePasswordCommon model) { return(repo.AssignRole(model)); }