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