Q: Sequence contains no elements using string.equals When executing the following code I get the error message 'Sequence contains no elements':
public PartialViewResult access (string usern, string passw)       
{ 
  string pw;
  var useraccess = (from check in myfirstDB.Users 
                    where check.Name.Equals(usern) 
                    select check).Single();
    ...
}

However, if I insert a literal in place of the variable usern the code works as expected.  I'm certain that the record exists in my table.  I'm using jquery to call the controller like this:
 $('#access-form').click(function () {
       $.ajax({
           url: '/home/access',
           contentType: 'application/html; charset=utf-8',
           type: 'GET',
           dataType: 'html'
       })
       .success(function (result) {
           $('#access-field').html(result);
       })
       .error(function (xhr, status) {
           alert(status);
       })
   });

