public async Task <User> RegistrationAsync(User model) { var studentRole = await roleReadRepository.GetStudentRoleAsync(); model.RoleId = studentRole.Id; return(await userWriteRepository.AddAsync(model)); }
public async Task<Role> GetStudentRoleAsync() { var result = await roleReadRepository.GetStudentRoleAsync(); return result; }