public async Task <List <Unit> > GetAllAsync() { var items = await _unitsRepository.GetAllAsync(); if (items != null && items.Any()) { return(items.ToList()); } return(new List <Unit>()); }
public async Task <List <Unit> > GetAllAsync() { var items = await _unitsRepository.GetAllAsync(); return(items.ToList()); }