Esempio n. 1
0
 public bool UpdateCity(City city)
 {
     try
     {
         using (IDbContextBase context = DbContextFactory.GetDbContext())
         {
             return(context.Update <City>(city));
         }
     }
     catch
     {
         throw;
     }
 }
Esempio n. 2
0
 public bool UpdateUser(User user)
 {
     try
     {
         using (IDbContextBase context = DbContextFactory.GetDbContext())
         {
             return(context.Update <User>(user));
         }
     }
     catch
     {
         throw;
     }
 }
Esempio n. 3
0
 public bool UpdateRole(Role role)
 {
     try
     {
         using (IDbContextBase context = DbContextFactory.GetDbContext())
         {
             return(context.Update <Role>(role));
         }
     }
     catch
     {
         throw;
     }
 }
Esempio n. 4
0
 public bool UpdateDistrict(District district)
 {
     try
     {
         using (IDbContextBase context = DbContextFactory.GetDbContext())
         {
             return(context.Update <District>(district));
         }
     }
     catch
     {
         throw;
     }
 }
Esempio n. 5
0
 public bool UpdateProperty(Property property)
 {
     try
     {
         using (IDbContextBase context = DbContextFactory.GetDbContext())
         {
             context.Update <Property>(property, false);
             return(context.SaveChanges());
         }
     }
     catch
     {
         throw;
     }
 }