Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7905307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T10:25:45+00:00 2026-06-03T10:25:45+00:00

I have two controller actions outlined below: public ViewResult TitleStorylines(int id) { var vm

  • 0

I have two controller actions outlined below:

public ViewResult TitleStorylines(int id)
    {
        var vm = Service.Get(id);
        vm.IsEditable = User.HasPermission(SecurityPermissionType.ManageStorylines);
        return View(vm);
    }

public ViewResult TitleStorylinesCreate(TitleStorylineModel model)
    {
        var created = Service.Create(model);
        return TitleStorylines(created.TitleId);
    }

I only have one view in my project, called TitleStorylines, which the first controller action handles fine. But when I call the second method, it gives me an error saying that it can’t find the view called TitleStorylinesCreate even though I’m explicitly calling the previous method. What gives?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T10:25:46+00:00Added an answer on June 3, 2026 at 10:25 am

    Did you try ?

    return View("TitleStorylines",created.TitleId);
    

    EDIT: Based on your update : I guess you are posting your form back the TitleStorylinesCreate. So probably after saving, dont you want to redirect the user back to the Get action of same ?

    [HttpPost]
    public ViewResult TitleStorylinesCreate(TitleStorylineModel model)
    {
        var created = Service.Create(model);
        return RedirectToAction("TitleStorylines",new { @id=created.TitleId});
    }
    

    In the above example we are doing the PRG pattern. Post -> Redirect -> Get
    After saving, we are redirecting them back to the first method. It will be a HTTP GET method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two very similar specs for two very similar controller actions: VoteUp(int id)
I have two actions inside my controller (shoppingCartController) public ActionResult Index() { //some stuff
I have two actions in my controller : def find @item = Item.find(params[:id]) render
Let say I have two methods in MVC 4 Web API controller: public IQueryable<A>
I have a Controller with two Edit methods (see below). When I submit the
In my controller i have two actions: Select_users and Make_something . In Select_users i
I have a single view that is used by two Controller Actions. My Controller:
I have a standard User controller with the normal set of actions (index, show,
I have two actions in controller: function indexAction() { $this->_redirect('/index/welcome/'); } function welcomeAction() {
i have two actions in my controller def up_vote lesson = Lesson.find(params[:id]) current_user.up_vote!(lesson) flash[:message]

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.