I have already tried to make a login form and I also want to display the user login profile that I have stored in the database. However, I have no idea how to do it neither from the model nor the controller.
I have stored all the user information in the Customers table of my database.
This is the code of Customer model:
public IList GetProfileCustomer(string name)
{
var list_customer = from c in DataContext.Customers
where c.WebAccount == name
select c;
return list_customer.ToList();
}
And this my AccountController:
public ActionResult ShowProfile()
{
return View();
}
I want to get the result that I wrote in my model, to display in my view.
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)