예제 #1
0
 public HttpResponseMessage CancelarAtendimento(int idagenda)
 {
     try
     {
         var agenda = _serviceAgenda.CancelarAtendimento(idagenda, base.GetUsuarioLogado().IdUsuario);
         CriarAgendaNovaCancelado(agenda);
         return(Request.CreateResponse(HttpStatusCode.OK));
     }
     catch (Exception ex)
     {
         return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex.Message));
     }
 }