Example #1
0
 public void Actualizar(CitaRequest request)
 {
     try
     {
         var bc = new CitaComponent();
         bc.Edit(request.Cita);
     }
     catch (Exception ex)
     {
         var httpError = new HttpResponseMessage()
         {
             StatusCode   = (HttpStatusCode)422,
             ReasonPhrase = ex.Message
         };
         throw new HttpResponseException(httpError);
     }
 }
Example #2
0
        public bool Edit(Cita Cita)
        {
            CitaComponent CitaComponent = new CitaComponent();

            return(CitaComponent.Edit(Cita));
        }
Example #3
0
        public void Edit(Cita cita)
        {
            var bc = new CitaComponent();

            bc.Edit(cita);
        }