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); } }
public bool Edit(Cita Cita) { CitaComponent CitaComponent = new CitaComponent(); return(CitaComponent.Edit(Cita)); }
public void Edit(Cita cita) { var bc = new CitaComponent(); bc.Edit(cita); }