예제 #1
0
        public Response <string> Add([FromBody] QueryUserListReq request)
        {
            var result = new Response <string>();
            var view   = new UserView
            {
                Account     = request.Account,
                Name        = request.Name,
                Sex         = request.Sex,
                Status      = request.Status,
                Description = request.Description,
                Tel         = request.Tel,
                IsDel       = false,
                IsFinger    = false,
                RowNum      = 0
            };

            try
            {
                _app.Add(view);
                result.Result = view.Id;
            }
            catch (Exception ex)
            {
                result.Code    = 500;
                result.Message = ex.InnerException?.Message ?? ex.Message;
            }
            return(result);
        }