Shibly  Sadik

Shibly Sadik

  • 1.5k
  • 167
  • 134.6k

Show personal profile in MVC

Jul 13 2015 6:28 AM
Here is the model class that represent the properties of a user profile.
public class Profile
{

public int ProfileId { get; set; }
public string UserName { get; set; }
public string Age { get; set; }
public string Gender { get; set; }
public string Password { get; set; }
public string Email { get; set; }
}
When users create their profile their profiles are saved in the database..
now,when they log in using their email and password I want to show them their personal profile only.How can I do this?
I am a beginner in mvc..help me explaining detail please..

Answers (1)