private CreatePostsVm GetCreatePublicationVm() { var model = new CreatePostsVm() { Categories = GetListItem.GetSelectListItems(this.categoryService.GetAllCategories()), }; return(model); }
private AddOrderVm GetAddOrderVm() { var model = new AddOrderVm { Categories = GetListItem.GetSelectListItems(this.categoryService.GetAllCategories()), Appearances = GetListItem.GetSelectListItems(this.appearanceService.GetAllNameOfAppearances()) }; return(model); }
public AddOrderVm GetAddOrderVm(OrderBindingModel model, IEnumerable <string> categories, IEnumerable <string> appearances) { var orderViewModel = Mapper.Map <OrderBindingModel, AddOrderVm>(model); orderViewModel.Categories = GetListItem.GetSelectListItems(categories); orderViewModel.Appearances = GetListItem.GetSelectListItems(appearances); return(orderViewModel); }
public TextBoxWait() { this.int_1 = 100; this.timer_0 = new System.Timers.Timer(); this.timer_0.Elapsed += new ElapsedEventHandler(this.timer_0_Elapsed); this.timer_0.Interval = this.int_1; this.timer_0.Enabled = true; this.timer_0.AutoReset = false; this.timer_0.Stop(); this.myDelegate = new GetListItem(this.method_0); }
private DesignOrderVm GetDesignOrderVm(int?id) { var model = this.service.GetDesignOrderVm((int)id); if (model == null) { return(null); } model.FiguresSelectList = GetListItem.GetSelectListItems(this.figureService.GetAllFigures()); return(model); }