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