public Food() { _db = new FreezerContext(); _typesRepository = new TypesListRepository(); _types = _typesRepository.GetAllTypes(); _portionsRepository = new PortionsListRepository(); _portions = _portionsRepository.GetAllPortions(); }
public ActionResult <string> GetTypes() { return(new JsonResult(_typesRepository.GetAllTypes())); }
public SearchTypeController() //Costruttore-->Get lista freeezer da Repository { _typesRepository = new TypesListRepository(); _types = _typesRepository.GetAllTypes(); }