Exemplo n.º 1
0
 public List<House> Query(HouseQueryForm form)
 {
     ISqlMapper mapper = MapperHelper.GetMapper();
     HouseDao dao = new HouseDao(mapper);
     return dao.Query(form);
 }
Exemplo n.º 2
0
 public bool DeleteHouse(HouseQueryForm form)
 {
     if (form == null || string.IsNullOrEmpty(form.ID)) throw new Exception("form或者ID不能为空");
     string userid = userbll.GetCurrentUser().User.ID;
     return housebll.Update(new House { ID = form.ID, IsDeleted = 1, LastUpdator = userid });
 }
Exemplo n.º 3
0
 public bool Delete(HouseQueryForm form)
 {
     ISqlMapper mapper = MapperHelper.GetMapper();
     HouseDao dao = new HouseDao(mapper);
     return dao.Delete(form);
 }