public HttpResponseMessage Delete(String id)
        {
            RequestorRepository.DeleteRequestor(id);
            HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK);

            return(response);
        }
Example #2
0
        public HttpResponseMessage Get(int id)
        {
            var langFinal = RequestorRepository.GetRequestor(id);
            HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, langFinal);

            return(response);
        }
        public HttpResponseMessage Put(int id, [FromBody] Requestor val)
        {
            var requestors = RequestorRepository.UpdateRequestor(id, val);
            HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, requestors);

            return(response);
        }
        public HttpResponseMessage Post([FromBody] Requestor val)
        {
            var requestors = RequestorRepository.InsertRequestor(val);
            HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, requestors);

            return(response);
        }
        public HttpResponseMessage Login([FromBody] Requestor val)
        {
            var canLogin = RequestorRepository.CanLogin(val);
            HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, canLogin);

            return(response);
        }
        public HttpResponseMessage GetRequestorByName(string dni)
        {
            var requestors = RequestorRepository.SearchRequestorsByDni(dni);
            HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, requestors);

            return(response);
        }
        public HttpResponseMessage GetTot()
        {
            var requestors = RequestorRepository.GetAllRequestors();
            HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, requestors);

            return(response);
        }
Example #8
0
 public StatsService()
 {
     caseRepository      = CaseRepository.Instance;
     specimenRepository  = SpecimenRepository.Instance;
     slideRepository     = SlideRepository.Instance;
     requestorRepository = RequestorRepository.Instance;
     patientRepository   = PatientRepository.Instance;
 }
Example #9
0
 public CaseService()
 {
     specimenRepository  = SpecimenRepository.Instance;
     specimenFactory     = SpecimenFactory.Instance;
     requestorRepository = RequestorRepository.Instance;
     requestorFactory    = RequestorFactory.Instance;
     patientRepository   = PatientRepository.Instance;
     patientFactory      = PatientFactory.Instance;
     caseRepository      = CaseRepository.Instance;
     caseFactory         = CaseFactory.Instance;
     slideFactory        = SlideFactory.Instance;
     slideRepository     = SlideRepository.Instance;
 }
Example #10
0
 public RequestorService()
 {
     requestorRepository = RequestorRepository.Instance;
     requestorFactory    = RequestorFactory.Instance;
 }