コード例 #1
0
        public async Task<User> RegisterUser(User user)
        {
            try
            {
                var entity = this.ctx.Users.Add(user);
                await this.ctx.SaveChangesAsync();
                return entity;
            }
            catch (System.Exception ex)
            {

                throw new Exception(ex.Message);
            }
        }
コード例 #2
0
 public async Task<User> RegisterUser(User user)
 {
     return await this._accountDataService.RegisterUser(user);
 }