public ActionResult Documents(int id, string filter) { UserDocumentsVM model = new UserDocumentsVM() { UserID = id, SelectedFilter = filter, Filters = new List <string>() { "Excel", "Word", "PowerPoint" } }; return(View(model)); }
public ActionResult Documents(UserDocumentsVM model) { return(RedirectToAction("Documents", new { id = model.UserID, filter = model.SelectedFilter })); }