public async Task <IActionResult> Create(CategoryNewModel item) { if (ModelState.IsValid) { Guid id = await _categoryFacade.Create(item); return(RedirectToAction(nameof(Index), new { area = "Admin" })); } return(View(item)); }
public ActionResult <Guid> Create(CategoryNewModel category) { return(categoryFacade.Create(category)); }