I am trying to get the string value "Admin" from a linq query, but when I do:
string oldModule = dc.Modules
.Where(x => x.Id == um.ModuleId)
.Select(s => new {s.ModuleName})
.FirstOrDefault().ToString();
It returns { ModuleName = Admin } in the oldModule variable instead of just Admin.