public HttpResponseMessage Delete(String id) { RequestorRepository.DeleteRequestor(id); HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK); return(response); }
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); }
public StatsService() { caseRepository = CaseRepository.Instance; specimenRepository = SpecimenRepository.Instance; slideRepository = SlideRepository.Instance; requestorRepository = RequestorRepository.Instance; patientRepository = PatientRepository.Instance; }
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; }
public RequestorService() { requestorRepository = RequestorRepository.Instance; requestorFactory = RequestorFactory.Instance; }