public ActionResult GetAllVisitorsCategory() { VisitorsCategoryRepository visitorsCategoryRepository = new VisitorsCategoryRepository(); ModelState.Clear(); return(View(visitorsCategoryRepository.GetAllVisitorsCategory())); }
public ActionResult Register() { var viewModel = new RegistrationViewModel() { Categories = visitorsCategoryRepository.GetAllVisitorsCategory() }; return(View(viewModel)); }