Esempio n. 1
0
        public CompanyListViewModel Build()
        {
            var companies = _service.GetAllCompanies();

            var model = new CompanyListViewModel
            {
                Companies = companies.SelectToList(BuildCompanyModel)
            };

            return(model);
        }