Ejemplo n.º 1
0
        public async Task <ActionResult> RemoveDestinationFromTripAsync(RemoveDestinationFromTripViewModel model, string submit)
        {
            if (submit == "remove")
            {
                var _blError = await TripManager.DeleteUserTripstepAsync(model.DlTripStep.Id);

                if (_blError.ErrorCode != 0)
                {
                    throw new ApplicationException(_blError.ErrorMessage);
                }
            }

            return(RedirectToAction("EditTrip", new { @tripId = model.DlTripStep.TripId }));
        }