public BaseController()
 {
     _mail       = new MailSandler();
     _repository = DependencyResolver.Current.GetService <IRepository>();
     _mapper     = DependencyResolver.Current.GetService <IMapper>();
     _auth       = DependencyResolver.Current.GetService <IAuthentication>();
 }
        private bool SendEmail(Doctor currentDoctor)
        {
            MailSandler mail = new MailSandler();

            return(mail.SendEmail(string.Format("Для завершения регистрации перейдите по ссылке: {0}",
                                                Url.Action("ConfirmEmail", "Doctor", new { doctorID = currentDoctor.ID }, Request.Url.Scheme)), currentDoctor.Email));
        }