Example #1
0
        public async Task <IActionResult> GetCompaines()
        {
            var companies = await _repository.GetCompaniesAsync();

            var result = companies.Select(x => new { x.Id, x.Name });

            return(Ok(result));
        }