public async Task Delete(int id) { var findEmployee = _employeeService.FindbyId(id); if (findEmployee != null) { await _employeeService.DeleteAsync(findEmployee); } DebugDump.DLog("http://localhost:5000/api/employees - [Employees - DELETE] Item: "); DebugDump.CLog("http://localhost:5000/api/employees - [Employees - DELETE] Item: "); }
public async Task <ICollection <Employee> > Get() { var ret = await _employeeService.GetAllAsync(); DebugDump.CLog("[Employees - GET ALL] " + ret.Count); ret.DDump("http://localhost:5000/api/employees [Employees - GET ALL] "); ret.CDump("http://localhost:5000/api/employees [Employees - GET ALL] "); //console.table(resData.slice(0, 5)); return(ret); ; }