//public string ListaCliente([FromBody] string value) public string ListaMaterialPedido([FromBody] mvIDPedido mv) { try { if (!ModelState.IsValid) { return(BadRequest().StatusCode.ToString()); } else { lg.GeraLog("ListaMaterialPedido"); string json = mat.ListaMaterialPorPedido(mv.idPedido); lg.GeraLog("json ---> " + json); return(json); } } catch (Exception ex) { //return StatusCode(404); return(ex.Message.ToString()); } }
//public string ListaCliente([FromBody] string value) public bool FinalizaPedido([FromBody] mvIDPedido mv) { try { if (!ModelState.IsValid) { return(false); } else { lg.GeraLog("InserePedido"); return(pd.FinalizarPedido(mv.idPedido)); } } catch (Exception ex) { //return StatusCode(404); return(false); } }