Exemple #1
0
        public virtual async Task <IActionResult> Create([Bind] T data)
        {
            if (ModelState.IsValid)
            {
                await _businessObject.Create(data, User.Identity.Name);

                CreateMessage(Resource.SuccessMessageType, Resource.CreatedSuccessfully);

                return(RedirectToAction(nameof(Index)));
            }
            return(View(data));
        }