public ActionResult EmailConsult(string doctorId)
 {
     try
     {
         if (!string.IsNullOrWhiteSpace(doctorId))
         {
             var model  = new ConsultEmailViewModel();
             var doctor = _doctorService.GetDoctorbyId(doctorId);
             if (doctor == null)
             {
                 return(HttpNotFound());
             }
             model.DoctorId   = doctor.DoctorId;
             model.DoctorName = doctor.AspNetUser.FirstName + ' ' + doctor.AspNetUser.LastName;
             var addr = _addressService.GetAllAddressByUser(doctor.DoctorId).FirstOrDefault();
             model.DoctorAddress     = GetAddressline(addr);
             model.DoctorEmailCharge = doctor.EmailConsultFee;
             model.PatientName       = User.Identity.Name;
             return(View(model));
         }
         ErrorNotification("Opps !! Something wwnt wrong.");
         return(RedirectToAction("Index", "Home"));
     }
     catch { return(RedirectToAction("Index", "Home")); }
 }
 public ActionResult EmailConsult(ConsultEmailViewModel model)
 {
     try
     {
         SuccessNotification("After payment proceed..!!");
         return(View(model));
     }
     catch { return(RedirectToAction("Index", "Home")); }
 }