public bool Update(T data)
 {
     //using (context = new Context())
     {
         context.Entry <T>(data).State = EntityState.Modified;
         int result = context.SaveChanges();
         //ternary if
         return(result > 0 ? true : false);
     }
 }