public ActionResult <object> Update([FromBody] b_video_resourcesVM model, int Video_ID) { b_video_resources_Entity entity = model.ConvertToT <b_video_resources_Entity>(); this.SetUpdateUserInfo(entity); return(this._repository.Update(entity, Video_ID).ResponseSuccess()); }
public ActionResult <object> GetList([FromBody] b_video_resourcesVM model, int pageindex = 1, int pagesize = 24) { b_video_resources_Entity entity = model.ConvertToT <b_video_resources_Entity>(); var(list, total) = this._repository.GetList(entity, pageindex, pagesize); return(list.ResponseSuccess("", total)); }
public ActionResult <object> Post([FromBody] b_video_resourcesVM model) { b_video_resources_Entity entity = model.ConvertToT <b_video_resources_Entity>(); this.SetCreateUserInfo(entity); return(this._repository.Insert(entity).ResponseSuccess()); }