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