Example #1
0
        public ActionResult <Vet> Post([FromBody] Vet vet)
        {
            var service = new VetService();

            service.Store(vet);

            return(vet);
        }
Example #2
0
        public ActionResult <Vet> Put(long id, [FromBody] Vet vet)
        {
            var service = new VetService();

            if (service.GetID(id) == null)
            {
                return(NotFound());
            }

            vet.VetID = id;

            service.Store(vet);

            return(vet);
        }