Ejemplo n.º 1
0
        public async Task <ActionResult <WantedBundle> > PostWantedBundle(WantedBundle wantedBundle)
        {
            string reasonCode = Verify.CheckValidity(wantedBundle);

            if (reasonCode == "No reason")
            {
                return(wantedBundle);
            }
            else
            {
                return(BadRequest(reasonCode));
            }
        }