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()); }
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)); }