I just write a simple method to get user data from database by "UserName" and its work but it's not case-sensitive , without any "toLower()" methods or something like that... and this is a big problem because it's think "Admin" equal to "admin" but this two actually not equal together ... please some body tell me what should I do???
public List<UserViewModel> GetByName(string userName)
{
return db.UserTBL.Where(u => u.UserName == userName).
Select(u => new UserViewModel
{
UserName = u.UserName,
UserFullName = u.UserFullName,
UserPassword = u.UserPassword,
UserImage = u.UserImage
}).ToList();
}