public async Task <ActionResult> PostEducator(EducatorInsertDTO educator)
        {
            try
            {
                UserAccount newAccount = new UserAccount(educator.Username, educator.Password, 2, educator.AvatarUrl);

                int newAccountId = await _userAccountRepository.AddUserAccount(newAccount);

                if (newAccountId != 0)
                {
                    Educator newEducator = new Educator(educator.FirstName, educator.LastName,
                                                        educator.Email, educator.Phone, newAccountId, educator.Title, educator.CourseFieldId);


                    var edcId = await _educatorRepository.AddEducator(newEducator);

                    return(Ok());
                }

                return(BadRequest());
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }