public async Task<ActionResult> CreateSave(Category category) { category.Id = Guid.NewGuid(); new CategoryAPI().add(category); return RedirectToAction("Index"); }
public async Task<ActionResult> EditSave(Category category) { new CategoryAPI().update(category); return RedirectToAction("Index"); }
public async Task<ActionResult> Create(Category category) { return View(); }