示例#1
0
        private async Task <IAdvertisementSearchViewModel> PoulateDropDownListAsync(IAdvertisementSearchViewModel model, CancellationToken cancellationToken)
        {
            if (model == null)
            {
                model = new AdvertisementSearchViewModel();
            }

            DropDownListDAL _ddlDal = new DropDownListDAL();

            //  model.DDLSearch = await _ddlDal.GetAdvertisementSearchListAsync(userId, cancellationToken, true);

            return(model);
        }
示例#2
0
        private async Task <IEmailServerSearchViewModel> PoulateDropDownListAsync(IEmailServerSearchViewModel model, CancellationToken cancellationToken)
        {
            if (model == null)
            {
                model = new EmailServerSearchViewModel();
            }

            DropDownListDAL _ddlDal = new DropDownListDAL();

            model.DDLSearch = await _ddlDal.GetEmailServerSearchListAsync(userId, cancellationToken, true);

            return(model);
        }
示例#3
0
        public override void OnResultExecuting(ResultExecutingContext filterContext)
        {
            DropDownListDAL _ddlDAL = new DropDownListDAL();

            if (filterContext.HttpContext.Session[Sessions.DDLPageSize] == null)
            {
                var pageSizeDDL = _ddlDAL.GetPageSizeList();
                if (pageSizeDDL != null)
                {
                    filterContext.HttpContext.Session[Sessions.DDLPageSize] = pageSizeDDL;
                }
            }
        }
示例#4
0
        private async Task <IUserSearchViewModel> PoulateDropDownListAsync(IUserSearchViewModel model, CancellationToken cancellationToken)
        {
            if (model == null)
            {
                model = new UserSearchViewModel();
            }

            DropDownListDAL _ddlDal = new DropDownListDAL();

            model.DDLLocation = await _ddlDal.GetLocationListAsync(userId, -1, cancellationToken);

            model.DDLCountry = await _ddlDal.GetCountryListAsync(userId, cancellationToken);

            model.DDLSearch = await _ddlDal.GetUserSearchListAsync(userId, cancellationToken);

            model.DDLCountry[0].Identifier  = "ddlCountry";
            model.DDLLocation[0].Identifier = "ddlLocation";
            return(model);
        }
        private async Task <IWebApiUserSearchViewModel> PoulateDropDownListAsync(IWebApiUserSearchViewModel model, CancellationToken cancellationToken)
        {
            if (model == null)
            {
                model = new WebApiUserSearchViewModel();
            }

            DropDownListDAL _ddlDal = new DropDownListDAL();

            model.DDLOrganization = await _ddlDal.GetOrganizationListAsync(userId, -1, cancellationToken);

            model.DDLSystem = await _ddlDal.GetSystemListAsync(userId, cancellationToken);

            model.DDLSearch = await _ddlDal.GetWebApiUserSearchListAsync(userId, cancellationToken);

            model.DDLSystem[0].Identifier       = "ddlSystem";
            model.DDLOrganization[0].Identifier = "ddlOrganization";
            return(model);
        }
示例#6
0
 public AdvertisementSearchService()
 {
     _dal    = new AdvertisementDAL();
     _ddlDal = new DropDownListDAL();
 }
示例#7
0
 public EmailServerSearchService()
 {
     _dal    = new EmailServerDAL();
     _ddlDal = new DropDownListDAL();
 }
示例#8
0
 public ThemeSearchService()
 {
     _dal    = new ThemeDAL();
     _ddlDal = new DropDownListDAL();
 }
 public ObjectService()
 {
     _dal    = new ObjectDAL();
     _ddlDal = new DropDownListDAL();
 }
示例#10
0
 public SecurityQuestionService()
 {
     _dal    = new SecurityQuestionDAL();
     _ddlDal = new DropDownListDAL();
 }
 public CategorySearchService()
 {
     _dal    = new CategoryDAL();
     _ddlDal = new DropDownListDAL();
 }
 public WebApiObjectService()
 {
     _dal    = new WebApiObjectDAL();
     _ddlDal = new DropDownListDAL();
 }
示例#13
0
 public UserService()
 {
     _dal    = new TempUserDAL();
     _ddlDAL = new DropDownListDAL();
 }
 private async Task PoulateDropDownListAsync(ILocationModel model, CancellationToken cancellationToken)
 {
     _ddlDal           = new DropDownListDAL();
     model.CountryList = await _ddlDal.GetCountryListAsync(userId, cancellationToken, true);
 }
 public CountrySearchService()
 {
     _dal    = new CountryDAL();
     _ddlDal = new DropDownListDAL();
 }
示例#16
0
 public LocationSearchService()
 {
     _dal    = new LocationDAL();
     _ddlDal = new DropDownListDAL();
 }
示例#17
0
 public WebApiUserService()
 {
     _dal    = new WebApiUserDAL();
     _ddlDAL = new DropDownListDAL();
 }
示例#18
0
 public RoleSearchService()
 {
     _dal    = new RoleDAL();
     _ddlDal = new DropDownListDAL();
 }
示例#19
0
 public SecurityInfoService()
 {
     _dal    = new SecurityInfoDAL();
     _ddlDAL = new DropDownListDAL();
 }
示例#20
0
 public DropdownService()
 {
     _ddlDAL = new DropDownListDAL();
 }
示例#21
0
 public MainService()
 {
     _ddlDAL = new DropDownListDAL();
 }
 public HirePlanaService()
 {
     _ddlDAL = new DropDownListDAL();
 }
示例#23
0
        //public abstract T Index(HttpContext context);



        public async Task <string> SelectCurrentDateTimeLocalizedAsync(System.Web.HttpContext context, long userId, CancellationToken cancellationToken)
        {
            DropDownListDAL _dal = new DropDownListDAL();

            return(await _dal.SelectCurrentDateTimeLocalizedAsync(userId, cancellationToken));
        }
示例#24
0
 public WebAPIRoleObjectService()
 {
     _dal    = new WebAPIRoleObjectDAL();
     _ddlDAL = new DropDownListDAL();
 }
示例#25
0
 private async Task PoulateDropDownListAsync(ICountryModel model, CancellationToken cancellationToken)
 {
     _ddlDal = new DropDownListDAL();
 }
示例#26
0
 public AdvertisementService()
 {
     _ddlDAL = new DropDownListDAL();
 }