public ActionResult Edit(int id, Maske maske) { try { // TODO: Add update logic here db.Update(maske); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }
public ActionResult Create(Maske maske) { try { db.Add(maske); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }
public ActionResult Delete(int id, Maske maske) { try { db.Delete(maske); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }
public void Put(int id, [FromBody] Maske maske) { db.Update(maske); }
public void Post([FromBody] Maske maske) { db.Add(maske); }