Esempio n. 1
0
        public async Task <IActionResult> Create(DesignationCreateModel model)
        {
            if (ModelState.IsValid)
            {
                var desgination = BuildDesignation(model);
                await _designationService.Create(desgination);

                return(RedirectToAction("Index", "Designation"));
            }
            return(View(model));
        }