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