Exemplo n.º 1
0
        public User Post([FromBody] User value)
        {
            bUser abc = container.Resolve <bUser>();

            value = abc.Create(value);
            return(value);
        }
Exemplo n.º 2
0
        public User Put(int id, [FromBody] User value)
        {
            bUser abc = container.Resolve <bUser>();

            value = abc.Update(value);
            return(value);
        }
Exemplo n.º 3
0
    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)));
    }