Beispiel #1
0
        // GET: Activity
        public ActionResult Index()
        {
            var response = Task.Run(() => _activityProxy.GetActiviesAsync());

            //var response2 = Task.Run(() => _clientyProxy.GetClientsAsync());

            //List<SelectListItem> items = response2.Result.List.ConvertAll(d => {
            //    return new SelectListItem()
            //    {
            //        Text = d.firstName + " " +  d.lastName,
            //        Value = d.id.ToString(),
            //        Selected = false
            //    };
            //});

            //ViewBag.clients = items;
            return(View(response.Result.List));
        }