コード例 #1
0
        public async Task <ActionResult> Delete(MatcherViewModel model, string updateButton)
        {
            string previousPage = CacheHelper.GetPreviousPage(_cache);

            if (updateButton.Equals("Cancel"))
            {
                return(Redirect(previousPage));
            }

            await DigitalTwinsHelper.DeleteMatcherAsync(model.SelectedMatcher, _cache, Loggers.SilentLogger);

            return(RedirectToAction("Edit", "UDF", new { id = model.UdfId }));
        }