title: how can i return user in post method
body: <p>This is my userlogincheck:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  
  namespace WebApplication1.Models
  {
      public class UserLoginCheck
      {
          public int Id { get; set; }
          public string mobile { get; set; }
          public string password { get; set; }
      }
  }
  
  public HttpResponseMessage PostProduct(UserLoginCheck item)
          {
  
  
              User user = db.Users.FirstOrDefault(x =&gt; x.Mobile == item.mobile &amp;&amp; 
                x.Password == item.password);
  
              string uri = Url.Link("DefaultApi", new { id = item.Id });
              var response = Request.CreateResponse&lt;User&gt; 
              (HttpStatusCode.Created,user);
              response.Headers.Location = new Uri(uri);
  
              return response;
          }
  </code></pre>
  
  <p>i want to send mobile and password and return user that username and password equal to this username and password</p>
  
  <p>i recive this error : System.Net.Http.HttpRequestException: 500 (Internal Server Error)
  i call this method from xamarin mobile app
  please help me</p>