Esempio n. 1
0
        public async Task <User> RegistrationAsync(User model)
        {
            var studentRole = await roleReadRepository.GetStudentRoleAsync();

            model.RoleId = studentRole.Id;

            return(await userWriteRepository.AddAsync(model));
        }