public void Put(int id, [FromBody] ArztAPI value) { var arzt = config.CreateMapper().Map <Arzt>(value); core.Repository.Update(arzt); core.Repository.SaveAll(); }
public void Post([FromBody] ArztAPI arztAPI) { var arzt = config.CreateMapper().Map <Arzt>(arztAPI); core.Repository.Add(arzt); core.Repository.SaveAll(); }