public User Post([FromBody] User value) { bUser abc = container.Resolve <bUser>(); value = abc.Create(value); return(value); }
public User Put(int id, [FromBody] User value) { bUser abc = container.Resolve <bUser>(); value = abc.Update(value); return(value); }
protected void Page_Load(object sender, EventArgs e) { mUser mU = new mUser(); bUser bU = new bUser(); mU.UserName = Request["UserName"]; if (bU.IsUserUserName(mU)) { Response.Write("此用户名已存在!"); } }
protected int GetUserCount(object GroupId) { bUser bU = new bUser(); return(bU.GetUserCount(StringDeal.ToInt(GroupId))); }