public List <tb_goodsCG> Find(tb_goodsCG p) { string res = http.Get(GetUrl(RequestEnum.tb_goodsCG), p).ReadAsStringAsync().Result; return(res.ToDeserialize <List <tb_goodsCG> >()); }
public int Delete(tb_goodsCG p) { string res = http.Delete(GetUrl(RequestEnum.tb_goodsCG), p).ReadAsStringAsync().Result; return(res.ToDeserialize <int>()); }
public int Update(tb_goodsCG p) { string res = http.Put(GetUrl(RequestEnum.tb_goodsCG), p).ReadAsStringAsync().Result; return(res.ToSerializer <int>()); }
public int Delete(tb_goodsCG parameter) { tb_goodsCGBLL bll = new tb_goodsCGBLL(); return(bll.Delete(parameter)); }
public int Put([FromBody] tb_goodsCG parameter) { tb_goodsCGBLL bll = new tb_goodsCGBLL(); return(bll.Update(parameter)); }
public int Post([FromBody] tb_goodsCG parameter) { tb_goodsCGBLL bll = new tb_goodsCGBLL(); return(bll.Add(parameter)); }
public IEnumerable <tb_goodsCG> Get(tb_goodsCG parameter) { tb_goodsCGBLL bll = new tb_goodsCGBLL(); return(bll.Find(parameter)); }