//Secuencial public ActionResult <IEnumerable <Categoria> > Get() { //return new string[] { "value1", "value2" }; /// <summary> /// Retorna lista de categoria /// </summary> /// <returns></returns> return(context.GetCategorias().ToList()); }
public async Task <IEnumerable <Categoria> > Get() { //return new string[] { "value1", "value2" }; return(await context.GetCategorias()); }