public async Task <IActionResult> GetEmps() { var data = await _repo.GetEmps(); if (data != null) { return(Ok(data)); } else { return(NotFound()); } }
public static List <EmpInfo> GetEmps() { return(dal.GetEmps()); }