public async Task <ActionResult> Create()
        {
            ViewBag.Lang = new SelectList(new List <SelectListItem> {
                new SelectListItem {
                    Text = "en", Value = "en"
                },
                new SelectListItem {
                    Text = "ru", Value = "ru"
                },
                new SelectListItem {
                    Text = "am", Value = "am"
                },
            },
                                          "Value", "Text");
            IList <Technology> technologies = await DbAdaptor.GetTechnologiesAsync();

            ViewBag.TechnologyID = new MultiSelectList(technologies, "TechnologyID", "Name");
            return(View());
        }
        public async Task <ActionResult> Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            Project project = await DbAdaptor.GetProjectAsync(id);

            if (project == null)
            {
                return(HttpNotFound());
            }

            ViewBag.Lang = new SelectList(new List <SelectListItem> {
                new SelectListItem {
                    Text = "en", Value = "en"
                },
                new SelectListItem {
                    Text = "ru", Value = "ru"
                },
                new SelectListItem {
                    Text = "am", Value = "am"
                },
            },
                                          "Value", "Text");

            var all = await DbAdaptor.GetTechnologiesAsync();

            var selected = project.Technologies?.ToList();

            if (selected != null)
            {
                var notSelected = all.Where(x => !selected.Contains(x)).ToList();
                ViewBag.TechnologyID = notSelected.Count > 0 ?  new MultiSelectList(notSelected, "TechnologyID", "Name") : null;
            }
            return(View(project));
        }
        public async Task <ActionResult> Index()
        {
            IList <Technology> list = await DbAdaptor.GetTechnologiesAsync();

            return(View(list));
        }