Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public ActionResult Login() //Get Method for Login
- {
- return View("Login");
- }
- [HttpPost] // Post Method on Login
- public ActionResult Defaults(string username, string password)
- {
- FloorFactor ff = new FloorFactor(); // tried to create model object to pass in view
- try
- {
- Login_Details login_detail = db.Login_Details.Single(x => (x.UserName == username) && (x.Password == password));
- if (login_detail != null)
- {
- return View("../Home/Index",ff ); // need to get view Index of home controller.
- }
- }
- catch { }
- return View("Login");
- }
- @model IEnumerable<Pricing_Tool_Test.FloorFactor>
- @{
- ViewBag.Title = "Index";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement