Пример #1
0
        public ActionResult <object> Update([FromBody] b_banner_resourcesVM model)
        {
            b_banner_resources_Entity entity = model.ConvertToT <b_banner_resources_Entity>();

            this.SetUpdateUserInfo(entity);
            return(this._repository.Update(entity, model.Banner_ID).ResponseSuccess());
        }
Пример #2
0
        public ActionResult <object> Post([FromBody] b_banner_resourcesVM model)
        {
            b_banner_resources_Entity entity = model.ConvertToT <b_banner_resources_Entity>();

            this.SetCreateUserInfo(entity);
            return(this._repository.Insert(entity).ResponseSuccess());
        }