Hi I am new at MVC and learning the MVC ,
i have made the class in the controller and access it when i ADD the View.
it goes good but when i run the view in browser it displays nothing.
My view display nothing it not reach to the controller why ?? please help me
What I have tried:
Here is the Class in the Controller
<pre>public class SignInModel
{
public string Username { get; set; }
public string Password { get; set; }
public bool RememberMe { get; set; }
public string PreviousUrl { get; set; }
public SignInModel()
{
this.Username = string.Empty;
this.Password = string.Empty;
this.RememberMe = false;
this.PreviousUrl = string.Empty;
}
}
Here is the Controller
[HttpGet]
public ActionResult FacilitySignin()
{
return View();
}
@model InstaCareDoctorPanel.Controllers.SignInModel
@{
ViewBag.Title = "Login";
}
Here is the View that is not showing in browser
Username
@Html.TextBoxFor(x => x.Username, new { id = "username", @class = "form-control text-input", Required = true, placeholder = "Username" })
Password
@Html.TextBoxFor(x => x.Password, new { name = "password", type = "password", id = "password", @class = "form-control text-input", required = "true", placeholder = "********" })