public HttpResponseMessage PostNewBombaTicaDoctor([FromBody] Doctor value)
        {
            DoctorRegister.GetInstance().AddDoctor(DoctorRegister.docListB, value);
            var response = Request.CreateResponse(HttpStatusCode.Created);

            return(response);
        }
        public HttpResponseMessage PostNewLaBombaDoctor([FromBody] Doctor value)
        {
            DoctorRegister.GetInstance().AddLaBombaDoctor(value);
            HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.Created);

            response.Headers.Location = new Uri(Request.RequestUri, String.Format("DoctorLB/{0}", value.Doctor_DID));
            return(response);
        }
        public IHttpActionResult GetBombaTicaDoctorById(long id)
        {
            var val = DoctorRegister.GetInstance().GetDoctor(DoctorRegister.docListB, id);

            if (val == null)
            {
                return(NotFound());
            }
            return(Ok(val));
        }
        public HttpResponseMessage PutPhischelDoctor(long id, [FromBody] Doctor value)
        {
            var val = DoctorRegister.GetInstance().UpdateDoctor(DoctorRegister.docListP, id, value);

            if (val == false)
            {
                var responseA = Request.CreateResponse(HttpStatusCode.NotModified);
                return(responseA);
            }

            var responseB = Request.CreateResponse(HttpStatusCode.Accepted);

            return(responseB);
        }
        public HttpResponseMessage DeleteBombaTicaDoctor(long id)
        {
            var val = DoctorRegister.GetInstance().RemoveDoctor(DoctorRegister.docListB, id);

            if (val == false)
            {
                var responseA = Request.CreateResponse(HttpStatusCode.NotModified);
                return(responseA);
            }

            var responseB = Request.CreateResponse(HttpStatusCode.Accepted);

            return(responseB);
        }
 public Doctor Get(int id)
 {
     return(DoctorRegister.GetInstance().GetLaBombaDoctor(id));
 }
 public List <Doctor> Get()
 {
     return(DoctorRegister.GetInstance().GetAllLaBombaDoctors());
 }
 public void DeletePhischelDoctor(int doc_id)
 {
     DoctorRegister.GetInstance().RemovePhischelDoctor(doc_id);
 }
 public void UpdatePhischelDoctorBD(int id, [FromBody] DateTime value)
 {
     DoctorRegister.GetInstance().UpdatePhischelDoctorBirthDate(DoctorRegister.GetInstance().GetPhischelDoctor(id), value);
 }
 public void UpdatePhischelDoctorAD(int id, [FromBody] string value)
 {
     DoctorRegister.GetInstance().UpdatePhischelDoctorAddress(DoctorRegister.GetInstance().GetPhischelDoctor(id), value);
 }
 public void UpdatePhischelDoctorLN(int id, [FromBody] string value)
 {
     DoctorRegister.GetInstance().UpdatePhischelDoctorLastName(DoctorRegister.GetInstance().GetPhischelDoctor(id), value);
 }
 public Doctor GetPischellDoctorByID(int id)
 {
     return(DoctorRegister.GetInstance().GetPhischelDoctor(id));
 }
 public List <Doctor> GetAllPhischelDoctors()
 {
     return(DoctorRegister.GetInstance().GetAllPhischelDoctors());
 }
 public void DeleteLaBombaDoctor(int doc_id)
 {
     DoctorRegister.GetInstance().RemoveLaBombaDoctor(doc_id);
 }
 public void UpdateLaBombaDoctorFN(int id, [FromBody] string value)
 {
     DoctorRegister.GetInstance().UpdateLaBombaDoctorFirstName(DoctorRegister.GetInstance().GetLaBombaDoctor(id), value);
 }
 public List <Doctor> GetAllBombaTicaDoctors()
 {
     return(DoctorRegister.GetInstance().GetAllDoctors(DoctorRegister.docListB));
 }