public IActionResult Index() { scategoryViewModel.ScategoryList = new List <Scategory>(); scategoryViewModel.ScategoryList = _scategoryRepository.GetAll().ToList(); scategoryViewModel.Scategory = new Scategory(); return(View(scategoryViewModel)); }
public void Initializer() { registerSellerViewModel.ScategoryList = new List <Scategory>(); registerSellerViewModel.ScategoryList = _scategoryRepository.GetAll().ToList(); registerSellerViewModel.Scategory = new Scategory(); }