public IEnumerable <tb_XFMX> Get(tb_XFMX parameter) { tb_XFMXBLL bll = new tb_XFMXBLL(); if (parameter.IsNotNull() && parameter.Beizhu.IsNotNull()) { switch (parameter.Beizhu) { case "GetHotProducts": string str_sql = "select top 3 count(*) as a,MX_Goods from tb_xfmx group by MX_Goods order by a desc"; return(bll.GetHotProducts(str_sql)); } } return(bll.Find(parameter)); }
public int Delete(tb_XFMX parameter) { tb_XFMXBLL bll = new tb_XFMXBLL(); return(bll.Delete(parameter)); }
public int Put([FromBody] tb_XFMX parameter) { tb_XFMXBLL bll = new tb_XFMXBLL(); return(bll.Update(parameter)); }
public int Post([FromBody] List <tb_XFMX> parameter) { tb_XFMXBLL bll = new tb_XFMXBLL(); return(bll.Add(parameter)); }