Exemplo n.º 1
0
        public async Task <IActionResult> GetEmployees2(string id)
        {
            var repo  = new TableStorageRepository();
            var cards = await repo.GetAllEntities2(id);

            var employeeToReturn = _mapper.Map <IEnumerable <EmployeeListDto> >(cards);

            if (!cards.Any())
            {
                return(NotFound());
            }
            return(Ok(employeeToReturn));
        }