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