using Microsoft.AspNetCore.Mvc; using app01.Data; namespace app01.Controllers; [ApiController] [Route("[controller]")] public class EmployeeController : ControllerBase { private readonly DataService _db; public EmployeeController(DataService db) { _db = db; } [HttpGet(Name = "GetEmployees")] public IEnumerable Get() { return _db.Employees.ToArray(); } }