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