public IActionResult PosaVacaCamio(string nom) { if (_campService.PosaVacaAlCamio(nom)) { return(Ok("Ok")); } else { return(NotFound("Quina vaca s'ha de posar?")); } }
public IActionResult PosaVacaAlCamio(string nom) { if (_campService.PosaVacaAlCamio(nom)) { return(Ok(new Result { Resultat = "Ok" })); } else { return(NotFound(new Result { Resultat = "La vaca no hi cap al camiĆ³" })); } }