// PUT: api/ProduktRESTe/5 public void Put(int id, Uwe value) { core.UnitOfWork.ProduktRepository.Update(Mapper.Map <Produkt>(value)); core.UnitOfWork.Save(); }
// POST: api/ProduktRESTe public void Post(Uwe value) { core.UnitOfWork.ProduktRepository.Add(Mapper.Map <Produkt>(value)); core.UnitOfWork.Save(); }