Exemplo n.º 1
0
        public ActionResult Create(ServicesCreateViewModel model, string redirectUrl)
        {
            if (!ModelState.IsValid)
            {
                return(View(model));
            }
            var service = model.Map <Services>();

            Services.Create(service);

            return(RedirectToLocal(redirectUrl));
        }