public async Task <ActionResult <List <Load> > > GetAllLoads() { var loads = await loadService.GetAllLoads(); if (loads.Count == 0) { return(NoContent()); } return(Ok(loads)); }
public IEnumerable <Load> Get() { return(_service.GetAllLoads()); }