public virtual T Get(int id)
 {
     try
     {
         return(context.Set <T>().Find(id));
     }
     catch (Exception e)
     {
         Debug.WriteLine(e.Message + "\n" + e.StackTrace);
     }
     return(null);
 }