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));
        }
Exemple #2
0
 public ActionResult <Guid> Create(CategoryNewModel category)
 {
     return(categoryFacade.Create(category));
 }