public List <Category> GetAll() { List <Category> allCategory = new List <Category>(); allCategory = aCategoryGateway.GetAll(); return(allCategory); }
public async Task <IActionResult> GetCategories(int collocId) { IEnumerable <CategoryData> result = await _categoryGateway.GetAll(collocId); return(Ok(result)); }
public List <DAL.Entity.Category> GetAll() { var categories = categoryGateway.GetAll(); return(categories); }