Пример #1
0
        public async Task <ActionResult> CreateDestinationAsync(Destination model)
        {
            _CheckForAdminAccess();

            if (model != null)
            {
                await AdminUtility.SaveDestination(model);
            }

            return(RedirectToAction("EditDestination", new { @id = model.Id }));
        }
Пример #2
0
        public async Task <ActionResult> SaveDestinationAsync(EditDestinationViewModel model)
        {
            _CheckForAdminAccess();

            if (model != null)
            {
                await AdminUtility.SaveDestination(model.DbObject);
            }

            return(RedirectToAction("EditDestination", new { @id = model.DbObject.Id }));
        }