예제 #1
0
        public async Task <ActionResult <List <Load> > > GetAllLoads()
        {
            var loads = await loadService.GetAllLoads();

            if (loads.Count == 0)
            {
                return(NoContent());
            }

            return(Ok(loads));
        }
예제 #2
0
 public IEnumerable <Load> Get()
 {
     return(_service.GetAllLoads());
 }