public OutGetRegistros getRegistros(InGetRegistros Input) { var response = new OutGetRegistros(); try { var master = db.RegistroClinico.ToList(); if (master == null) { response.State = false; response.Message = "No hay registros clínicos creados."; } else { response.State = true; response.Message = "OK"; response.RegistrosClinicos = master; } } catch (Exception ex) { response.State = false; response.Message = ex.Message; } return(response); }
// [ActionName("getPaciente")] // [Route("getPaciente/")] public IHttpActionResult getRegistros(InGetRegistros Input) { var action = new RegistroClinicoAction(); return(Ok(action.getRegistros(Input))); }