public Models.Customers GetCusById(int id) { Dao.CusDao cusDao = new Dao.CusDao(); var datalist = cusDao.GetCusById(id); return(this.MapCusDetailData(datalist).FirstOrDefault()); }
public Boolean DeleteCus(int id) { Dao.CusDao cusDao = new Dao.CusDao(); var r = cusDao.DeleteCus(id); return(r); }
public Boolean InsertCus(Models.Customers cusData) { Dao.CusDao cusDao = new Dao.CusDao(); var r = cusDao.InsertCus(cusData); return(r); }
public List <Models.TextValue> GetContactTitleData() { Dao.CusDao cusDao = new Dao.CusDao(); var dt = cusDao.GetContactTitle(); return(this.MapContactTitleData(dt)); }
public List <Models.CustomerView1> SearchCus(Models.CustomerView1 cus) { Dao.CusDao cusDao = new Dao.CusDao(); var dt = cusDao.GetCusGridByCondition(cus); return(this.MapCusData(dt)); }
public List <Models.CustomerView1> GetCusGrid() { Dao.CusDao empDao = new Dao.CusDao(); var dt = empDao.GetCusGrid(); return(this.MapCusData(dt)); }