private static void saveManagerInformation(IEnumerable <string> employees, IAuthorizeLogOn adDal, ICustomIdentityDAL dal) { foreach (var employeeADName in employees) { var employeeADInfo = adDal.RetrieveUserInformation(employeeADName); dal.SaveManagerInfo(employeeADInfo); } }
private static void SaveManagerInformation(IEnumerable<string> employees, IAuthorizeLogOn adDal, ICustomIdentityDAL dal) { foreach (var employeeADName in employees) { var employeeADInfo = adDal.RetrieveUserInformation(employeeADName); dal.SaveManagerInfo(employeeADInfo); } }
private void insertUserInfoFromAD(IAuthorizeLogOn adDal, ICustomIdentityDAL dal, string userName) { var userADInfo = adDal.RetrieveUserInformation(userName); if (userADInfo != null) { dal.SaveIdentity(userADInfo); } }
private void MarkTermDateForMissingEmployees(IAuthorizeLogOn adDal, ICustomIdentityDAL dal) { var userCollectionDal = IoC.Container.Resolve <IUserCollectionDAL>(); var userCollection = userCollectionDal.GetActiveAdUsers(); foreach (var userName in userCollection) { if (adDal.RetrieveUserInformation(userName) == null) { dal.SetTerminationDate(userName, DateTime.UtcNow); } } }
private void MarkTermDateForMissingEmployees(IAuthorizeLogOn adDal, ICustomIdentityDAL dal) { var userCollectionDal = IoC.Container.Resolve<IUserCollectionDAL>(); var userCollection = userCollectionDal.GetActiveAdUsers(); foreach (var userName in userCollection) { if (adDal.RetrieveUserInformation(userName) == null) { dal.SetTerminationDate(userName, DateTime.UtcNow); } } }
private CustomIdentityDTO InsertUserInfoFromAD(IAuthorizeLogOn adDal, ICustomIdentityDAL dal, string userName) { var userADInfo = adDal.RetrieveUserInformation(userName); return dal.SaveIdentity(userADInfo); }
private CustomIdentityDTO InsertUserInfoFromAD(IAuthorizeLogOn adDal, ICustomIdentityDAL dal, string userName) { var userADInfo = adDal.RetrieveUserInformation(userName); return(dal.SaveIdentity(userADInfo)); }
private void InsertUserInfoFromAD(IAuthorizeLogOn adDal, ICustomIdentityDAL dal, string userName) { var userADInfo = adDal.RetrieveUserInformation(userName); if (userADInfo != null) { dal.SaveIdentity(userADInfo); } }