public HttpResponseMessage PostNewBombaTicaClient([FromBody] Client value) { ClientRegister.GetInstance().AddClient(ClientRegister.clientListB, value); var response = Request.CreateResponse(HttpStatusCode.Created); return(response); }
public HttpResponseMessage PostNewPhischelCLient([FromBody] Client value) { ClientRegister.GetInstance().AddPhischelClient(value); HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.Created); response.Headers.Location = new Uri(Request.RequestUri, String.Format("Client/{0}", value.Client_ID)); return(response); }
public IHttpActionResult GetBombaTicaClientById(long id) { var val = ClientRegister.GetInstance().GetClient(ClientRegister.clientListB, id); if (val == null) { return(NotFound()); } return(Ok(val)); }
public HttpResponseMessage DeleteBombaTicaClient(long id) { var val = ClientRegister.GetInstance().RemoveClient(ClientRegister.clientListB, id); if (val == false) { var responseA = Request.CreateResponse(HttpStatusCode.NotModified); return(responseA); } var responseB = Request.CreateResponse(HttpStatusCode.Accepted); return(responseB); }
public HttpResponseMessage PutPhischelClient(long id, [FromBody] Client value) { var val = ClientRegister.GetInstance().UpdateClient(ClientRegister.clientListP, id, value); if (val == false) { var responseA = Request.CreateResponse(HttpStatusCode.NotModified); return(responseA); } var responseB = Request.CreateResponse(HttpStatusCode.Accepted); return(responseB); }
public void DeleteLaBombaClient(int id) { ClientRegister.GetInstance().RemoveLaBombaClient(id); }
public void CheckoutLaBomba(int id) { ClientRegister.GetInstance().CheckoutLaBomba(ClientRegister.GetInstance().GetPhischelClient(id)); }
public void RemoveLaBombaClientMedicine(int id, [FromBody] Medicine value) { ClientRegister.GetInstance().RemoveLaBombaClientMed(ClientRegister.GetInstance().GetPhischelClient(id), value); }
public void UpdateLaBombaClientPassword(int id, [FromBody] string value) { ClientRegister.GetInstance().UpdateLaBombaClientEmail(ClientRegister.GetInstance().GetLaBombaClient(id), value); }
public void UpdatePhischelClientPN(int id, [FromBody] int value) { ClientRegister.GetInstance().UpdatePhischelClientPhone(ClientRegister.GetInstance().GetPhischelClient(id), value); }
public Client GetLaBombaClientById(int id) { return(ClientRegister.GetInstance().GetLaBombaClient(id)); }
public List <Client> GetAllLaBombaCliensts() { return(ClientRegister.GetInstance().getAllLaBombaClients()); }
public void DeletePhischelClient(int id) { ClientRegister.GetInstance().RemovePhischelCLient(id); }
public void AddPhischelClientMedicine(int id, [FromBody] Medicine value) { ClientRegister.GetInstance().AddPhischelClientMed(ClientRegister.GetInstance().GetPhischelClient(id), value); }
public List <Medicine> GetPhischellClientMedListById(int id) { return(ClientRegister.GetInstance().GetPhichelClientMedicineList(id)); }
public List <Medicine> GetLaBombaClientMedlistById(int id) { return(ClientRegister.GetInstance().GetLaBombaClientMedicineList(id)); }
public Client GetPhischellClientById(int id) { return(ClientRegister.GetInstance().GetPhischelClient(id)); }
public void UpdateLaBombaClientAI(int id, [FromBody] string value) { ClientRegister.GetInstance().UpdateLaBombaClientInfo(ClientRegister.GetInstance().GetLaBombaClient(id), value); }
public void UpdatePhischelClientBD(int id, [FromBody] DateTime value) { ClientRegister.GetInstance().UpdatePhischelClientBirthDate(ClientRegister.GetInstance().GetPhischelClient(id), value); }
public List <Client> GetAllPhischelClients() { return(ClientRegister.GetInstance().getAllPhischelClients()); }
public void UpdatePhischelClientEmail(int id, [FromBody] string value) { ClientRegister.GetInstance().UpdatePhischelClientEmail(ClientRegister.GetInstance().GetPhischelClient(id), value); }
public List <Client> GetAllBombaTicaClients() { return(ClientRegister.GetInstance().GetAllClients(ClientRegister.clientListB)); }