Пример #1
0
 public async Task<ActionResult> CreateSave(Category category)
 {
     category.Id = Guid.NewGuid();
     new CategoryAPI().add(category);
     return RedirectToAction("Index");
 }
Пример #2
0
 public async Task<ActionResult> EditSave(Category category)
 {
     new CategoryAPI().update(category);
     return RedirectToAction("Index");
 }
Пример #3
0
 public async Task<ActionResult> Create(Category category)
 {
     return View();
 }