Exemplo n.º 1
0
        public IActionResult Index()
        {
            scategoryViewModel.ScategoryList = new List <Scategory>();
            scategoryViewModel.ScategoryList = _scategoryRepository.GetAll().ToList();

            scategoryViewModel.Scategory = new Scategory();

            return(View(scategoryViewModel));
        }
Exemplo n.º 2
0
        public void Initializer()
        {
            registerSellerViewModel.ScategoryList = new List <Scategory>();
            registerSellerViewModel.ScategoryList = _scategoryRepository.GetAll().ToList();

            registerSellerViewModel.Scategory = new Scategory();
        }