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