Exemplo n.º 1
0
        public ActionResult <object> Update([FromBody] b_productVM model)
        {
            b_product_Entity entity = model.ConvertToT <b_product_Entity>();

            this.SetUpdateUserInfo(entity);
            CacheFactory.CacheInstance.RemovePrefix(Constant.Cache_Product_Prefix);
            return(this._repository.Update(entity, model.Product_ID).ResponseSuccess());
        }
Exemplo n.º 2
0
        public ActionResult <object> GetList([FromBody] b_productVM model, int pageindex = 1, int pagesize = 24)
        {
            b_product_Entity entity = model.ConvertToT <b_product_Entity>();

            var(list, total) = this._repository.GetList(entity, pageindex, pagesize);

            return(list.ResponseSuccess("", total));
        }