MVC4プロジェクトに2つのコントローラーがあります。1つのコントローラーは、デフォルトのコントローラー名で。と呼ばれLoginます。別のコントローラーがエリアにあります。エリア名はHR.insideコントローラー名と呼ばれAddNewHireます。AddNewHireの中に私はAddNewEmployeeメソッドを書きました。
ログインコントローラで私は1つのメソッドを持っています。その名前はLoginButtonです。
LoginButtonメソッドの内部で私は書いた
return RedirectToAction("AddNewEmployee","AddNewHire",new {area="HR"});
のようなエラーが発生しています
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
要求されたURL:/ AddNewHireController / AddNewEmployee