Hi all
the below function "User.Identity.Name" always returning false , but it have to return true , kindly check where i going wrong
-----------------------------------------------------------
public ViewResult Show(int id)
{
var entry = _db.Entries.Find(id);
bool hasPermission = User.Identity.Name == entry.Name;
ViewData["hasPermission"] = hasPermission;
return View(entry);
}