public DoctorController(DoctorBL doctorBL, IMapper mapper, ILogger <DoctorController> logger)
 {
     this.doctorBL = doctorBL;
     this.mapper   = mapper;
     this.logger   = logger;
     logger.LogInformation(LoggerDoctor.CapaControlador);
 }
        public ActionResult Edit(string id)
        {
            DoctorDetails doctor      = DoctorBL.GetDoctorId(id);
            DoctorModel   doctorModel = AutoMapper.Mapper.Map <DoctorDetails, DoctorModel>(doctor);

            return(View(doctorModel));
        }
        public ActionResult Edit([Bind(Include = "Name,Specialist,MobileNumber,AvailableFromTime,AvailableToTime,MailId,Password")] DoctorModel doctorDetails)
        {
            DoctorDetails doctor = AutoMapper.Mapper.Map <DoctorModel, DoctorDetails>(doctorDetails);

            DoctorBL.UpdateDoctor(doctor);
            return(RedirectToAction("DisplayDetails"));
        }
        public ViewResult DisplayDetails()
        {
            IEnumerable <DoctorDetails> doctor = DoctorBL.DoctorData();

            TempData["Doctor Details"] = doctor;
            return(View(doctor));
        }
 public Manager_PtntMngmnt()
 {
     InitializeComponent();
     BL    = new PatientBL();
     DocBL = new DoctorBL();
     RooBL = new RoomBL();
     RecBL = new ReceptionistBL();
 }
 public Receptionist_PtntRcptn()
 {
     InitializeComponent();
     BL    = new PatientBL();
     DocBL = new DoctorBL();
     RooBL = new RoomBL();
     RecBL = new ReceptionistBL();
 }
 public Doctor_PatientDischarge()
 {
     InitializeComponent();
     BL     = new PatientBL();
     DocBL  = new DoctorBL();
     RooBL  = new RoomBL();
     RecBL  = new ReceptionistBL();
     PaHiBL = new PatientHistoryBL();
 }
 public ActionResult AddDoctorDetails(DoctorModel doctor)
 {
     if (ModelState.IsValid)
     {
         var Add = Mapper.Map <DoctorModel, DoctorDetails>(doctor);
         //if (DoctorBL.CheckIsExist(Mapper.Map(M))
         DoctorBL.AddDoctor(Add);
     }
     return(View());
 }
Esempio n. 9
0
 public bool InsertDoctor(Doctor objDoctor)
 {
     try
     {
         DoctorBL doctorBL = new DoctorBL();
         return(doctorBL.InsertDoctor(objDoctor));
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Esempio n. 10
0
 public List <Doctor> ListDoctorPorServicio(Doctor objDoctor)
 {
     try
     {
         DoctorBL doctorBL = new DoctorBL();
         return(doctorBL.ListDoctorPorServicio(objDoctor));
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Esempio n. 11
0
 public List <Doctor> ListDoctor()
 {
     try
     {
         DoctorBL doctorBL = new DoctorBL();
         return(doctorBL.ListDoctors());
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Esempio n. 12
0
 public Manager_DocMngmnt()
 {
     InitializeComponent();
     BL    = new DoctorBL();
     DepBL = new DepartmentBL();
 }
 public Form3()
 {
     InitializeComponent();
     BL = new DoctorBL();
 }
 public ActionResult DeleteDoctorData(string id)
 {
     DoctorBL.DeleteDoctorData(id);
     return(RedirectToAction("DisplayDetails"));
 }