示例#1
0
        public IActionResult Userregister(Account a)
        {
            int h = 0;

            try
            {
                h = bll.Userregister(a);
            }
            catch (Exception ex)
            {
                log.Error(ex.Message);
            }
            return(Ok(new { state = h > 0 ? true : false, msg = h > 0 ? "注册成功" : "注册失败" }));
        }