title: Can not implicitly convert type error
body: <p>I am using entity framework to access database and trying to use my productModel class inside product class. but some how getting convert type error. </p>
  
  <p><strong>Error:Cannot implicitly convert type 'SporLife.Product' to 'SporLife.Pages.Product'</strong> </p>
  
  <p><strong>this is my ManageProduct class</strong></p>
  
  <pre><code>namespace SporLife.Pages.Management
  {
      public partial class ManageProduct : System.Web.UI.Page 
       {
         private void FillPage(int id)
          {
              //set selected product from DB
              ProductModel model = new ProductModel();
              Product product = model.GetProduct(id);//error appears here
  
              //Fill textBoxes
              txtDescription.Text = product.Description;
              txtName.Text = product.Name;
              txtPrice.Text = product.Price.ToString();
  }}}
  </code></pre>
  
  <p><strong>This is my ProductModel class</strong></p>
  
  <pre><code>namespace SporLife.Models
  {
      public class ProductModel
      {
  
    public Product GetProduct(int id)
          {
              try
              {
                  using (SporLifeDBEntities2 db = new SporLifeDBEntities2())
                  {
                      Product product = db.Products.First(i =&gt; i.ID == id);
                      return product;
  
                  }
              }
              catch (Exception e)
              {
                  return null;
              }
          }}}
  </code></pre>