public ActionResult Create(long?categoryId) { if (!categoryId.HasValue) { var categories = CategoryDataStore.GetAll().ToArray(); return(View("ChooseRequestCategory", categories)); } var cat = CategoryDataStore.Get(categoryId.Value); return(View(new NewRequestFormDto { CategoryId = cat.Id, CategoryName = cat.Name, AuthorId = CurrentOperatorService.GetCurrentUser().Id })); }