public List <T> getAll()
 {
     using (_context = new FreelancerSpaceContext())
     {
         return(_context.Set <T>().ToList());
     }
 }
 public T get(int id)
 {
     using (_context = new FreelancerSpaceContext())
     {
         return(_context.Set <T>().Find(id));
     }
 }
 public bool add(T item)
 {
     using (_context = new FreelancerSpaceContext())
     {
         try
         {
             _context.Set <T>().Add(item);
             _context.SaveChanges();
             return(true);
         }
         catch (Exception ex)
         {
             return(false);
         }
     }
 }