Exemplo n.º 1
0
        public async Task OnGet()
        {
            Input           = new ApplyDoctorDto();
            Specializations = await _doctorService.ListAllSpecializations();

            Page();
        }
Exemplo n.º 2
0
 public async Task Create(long userId, ApplyDoctorDto dto)
 {
     await DoctorRepo.Create(new DoctorEntity()
     {
         UserId         = userId,
         Description    = dto.Description,
         Specialization = dto.Specialization,
         StartTime      = dto.StartTime.ToString() == "" ? default : dto.StartTime
     });