public ActionResult <object> Post([FromBody] sys_userVM model) { sys_user_Entity entity = model.ConvertToT <sys_user_Entity>(); this.SetCreateUserInfo(entity); return(this._repository.Insert(entity).ResponseSuccess()); }
public ActionResult <object> GetList([FromBody] sys_userVM model, int pageindex, int pagesize) { sys_user_Entity entity = model.ConvertToT <sys_user_Entity>(); var(list, total) = this._repository.GetList(entity, pageindex, pagesize); return(list.ResponseSuccess("", total)); }