Beispiel #1
0
        public ActionResult <IEnumerable <EmployeeDto> > GetAllEmployees()
        {
            var employees = _repository.GetAllEmployees();

            if (employees == null)
            {
                return(NotFound());
            }

            return(Ok(employees));
        }