Exemplo n.º 1
0
        public async Task <IActionResult> AddRedirect([FromForm] AddMobileDto model)
        {
            var addResult = await _mobile.AddMobile(model);

            return(RedirectToAction(addResult.Equals("success") ? "Index" : "Error"));
        }