public async Task <IActionResult> Create([Bind("Id,DisplayOrder,Name")] Category category) { if (ModelState.IsValid) { await _orderServices.CreateCategoryAsync(category); return(RedirectToAction(nameof(Index))); } return(View(category)); }
public async Task <IActionResult> Create([Bind("Id,DisplayOrder,Name")] Category category) { if (ModelState.IsValid) { await _orderServices.CreateCategoryAsync(category); return(RedirectToAction(nameof(Index))); } return(View(category)); }