public ActionResult <Vet> Post([FromBody] Vet vet) { var service = new VetService(); service.Store(vet); return(vet); }
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); }