public bool Update(Model model)
 {
     try
     {
         context.Entry <Model>(model).State = EntityState.Modified;
         set = context.Set <Model>();
         return(true);
     }
     catch (Exception e)
     {
         return(false);
     }
 }