public EnumUserPortalAuthenticationStatus ValidateAdmin(string username, string password) { MemberBLL bll = new MemberBLL(); //ResultMessageDC response = new ResultMessageDC(); AdminEntityDC MemberEntityDC = new AdminEntityDC(); MemberEntityDC = bll.VerifyUser(username, password); if (MemberEntityDC.roleID != "0") { if (MemberEntityDC.adminID != Guid.Empty) { GlobalModel globalModel = new GlobalModel(); globalModel.GlobalEmail = MemberEntityDC.emailAddress; globalModel.GlobalUserPortalText = string.Format("{0} {1}", MemberEntityDC.firstName, MemberEntityDC.lastName); globalModel.GlobalUserID = MemberEntityDC.adminID.ToString(); globalModel.SelectUserRoleID = MemberEntityDC.roleID; // globalModel.SelectUserRoleName = data.RoleName; // globalModel.UserImage = data.ProfilePhoto; // globalModel.Company = data.CompanyID; return(EnumUserPortalAuthenticationStatus.Successful); } } else { return(EnumUserPortalAuthenticationStatus.UnauthorizedLogin); } return(EnumUserPortalAuthenticationStatus.InvalidUsernameOrPassword); }
public AdminEntityDC SaveAdministrator(AdminEntityDC AdminEntity) { MemberServiceManager member = new MemberServiceManager(); AdminEntity = member.SaveAdministrator(AdminEntity); return(AdminEntity); }
public AdminEntityDC VerifyUser(string Username, string Password) { AdminEntityDC member = new AdminEntityDC(); MembersServiceSoapClient membersrv = new MembersServiceSoapClient(); member = membersrv.VerifyUser(Username, Password); return(member); }
public AdminEntityDC GetAdministratorByAdminID(string AdminID) { AdminListEntityDC MemberListEntityDC = new AdminListEntityDC(); AdminEntityDC MemberEntityDC = new AdminEntityDC(); MembersServiceSoapClient membersrv = new MembersServiceSoapClient(); return(membersrv.GetAdministratorByAdminID(AdminID)); }
public AdminListEntityDC GetAllAdministrator(string Search, string AccountID, int PageIndex, int PageSize) { AdminListEntityDC MemberListEntityDC = new AdminListEntityDC(); AdminEntityDC MemberEntityDC = new AdminEntityDC(); MembersServiceSoapClient membersrv = new MembersServiceSoapClient(); return(membersrv.GetAllAdministrator(Search, AccountID, PageIndex, PageSize)); }
public AdminEntityDC GetAdministratorByAdminID(string AdminID) { AdminEntityDC productResponse = new AdminEntityDC(); MemberDAL memberDAL = new MemberDAL(); productResponse = memberDAL.GetAdministratorByAdminID(AdminID); return(productResponse); }
public AdminEntityDC SaveAdministrator(AdminEntityDC Members) { MemberDAL memberDAL = new MemberDAL(); Members = memberDAL.SaveAdministrator(Members); return(Members); }
public AdminEntityDC VerifyUser(string Username, string Password) { AdminEntityDC member = new AdminEntityDC(); MemberDAL memberDAL = new MemberDAL(); member = memberDAL.VerifyUser(Username, Password); return(member); }
public AdminEntityDC VerifyUser(string Username, string Password) { AdminEntityDC MemberEntity = new AdminEntityDC(); MemberServiceManager member = new MemberServiceManager(); MemberEntity = member.VerifyUser(Username, Password); return(MemberEntity); }
public AdminEntityDC GetAdministratorByAdminID(string AdminID) { AdminEntityDC MemberEntity = new AdminEntityDC(); MemberServiceManager member = new MemberServiceManager(); MemberEntity = member.GetAdministratorByAdminID(AdminID); return(MemberEntity); }
public AdminListEntityDC GetAllAdministrator(string Search, string AccountID, int PageIndex, int PageSize, out int Count) { AdminListEntityDC productResponse = new AdminListEntityDC(); AdminEntityDC member = new AdminEntityDC(); MemberDAL memberDAL = new MemberDAL(); productResponse = memberDAL.GetAllAdministrator(Search, AccountID, PageIndex, PageSize, out Count); return(productResponse); }
//public MemberEntityDC InsertMembertoComputeStick(MemberEntityDC member) //{ //// Member memberDC = new Member(); // // memberDC = BusinessEntities.Translator.MemberTranslatorCompute.TranslateEntityToDC(member); // LogsServiceSoapClient membersrv = new LogsServiceSoapClient(); // return membersrv.InsertMember(memberDC); //} public AdminEntityDC SaveAdministrator(AdminEntityDC Admin) { MembersServiceSoapClient membersrv = new MembersServiceSoapClient(); return(membersrv.SaveAdministrator(Admin)); }