Beispiel #1
0
        public async Task <CompanyDto> GetById(int id)
        {
            var result = await _service.GetById(id);

            return(_mapper.Map <CompanyDto>(result));
        }
Beispiel #2
0
        public async Task <IActionResult> ById(string id)
        {
            var result = await _service.GetById(id);

            return(Result((CompanyResponse)result));
        }