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