public bool ValidateUserName(string username) { InsertBrokerOperationLog.AddProcessLog("Gateway service ValidateUserName() Start : " + username); try { using (var cxtLogin = new AMS.Broker.WatchDogService.DataStore.CentralDBEntities()) { var sid = AMS.Broker.WatchDogService.Helpers.AuthenticationHelper.GetUsersSID(username); if (!String.IsNullOrWhiteSpace(sid)) { return(true); //valid username } else { return(false);// invalid username } } } catch (Exception ex) { InsertBrokerOperationLog.AddProcessLog("Gateway service ValidateUserName() Exception: " + ex.Message); } finally { ClearMemory(); } return(true); }
//amit 22 sept 15 public List <tblMeonMembersDTO> GetEscallateCustomerList() { List <tblMeonMembersDTO> _list = new List <tblMeonMembersDTO>(); try { using (var ctx = new AMS.Broker.WatchDogService.DataStore.CentralDBEntities()) { var Meoncustlist = from dc in ctx.tblMeonMembers where dc.EscallationMember == 1 select dc; var meoncustdata = Meoncustlist.ToArray(); if (meoncustdata.Count() > 0) { _list = meoncustdata.Select(AutoMapper.Mapper.Map <tblMeonMembersDTO>).ToList(); return(_list); } } } catch (Exception ex) { } return(null); }