Пример #1
0
 public bool UpdatePage(Page page)
 {
     try
     {
         db.Entry(page).State = EntityState.Modified;
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
Пример #2
0
 public bool UpdateFlight(Flight flight)
 {
     try
     {
         db.Entry(flight).State = EntityState.Modified;
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
Пример #3
0
 public bool UpdateResidenceType(ResidenceType residenceType)
 {
     try
     {
         db.Entry(residenceType).State = EntityState.Modified;
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
Пример #4
0
 public bool UpdateCategory(Category category)
 {
     try
     {
         db.Entry(category).State = EntityState.Modified;
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
Пример #5
0
 public bool UpdateUserMessage(UserMessage userMessage)
 {
     try
     {
         db.Entry(userMessage).State = EntityState.Modified;
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }