public ViewResult ListOfSilos() { Silo_ViewModel siloViewModel = new Silo_ViewModel(); siloViewModel.allSilos = sqlRepository.GetAllSilos(); ViewBag.type = "read"; return(View("Silo_View", siloViewModel)); }
public ViewResult ListOfSilos() { Silo_ViewModel siloViewModel = new Silo_ViewModel(); siloViewModel.allSilos = sqlRepository.GetAllSilos(); ViewBag.type = "read"; return(View("Silo_View", siloViewModel)); }