public void Post([FromBody] Phone value) { value.Id = phoneDictionary.GetAll().Last().Id + 1; phoneDictionary.Add(value); }
public IActionResult AddSave(Phone phone) { phoneDictionary.Add(phone); return(RedirectToAction("Index")); }
public void Post([FromBody] Phone value) { value.Id = phoneDictionary.GetAll().Last().Id + 1; phoneDictionary.Add(value); }
public IActionResult AddSave(Phone phone) { phoneDictionary.Add(phone); return(RedirectToAction("Index")); }