public async Task <ActionResult> Delete(DeviceViewModel model, string updateButton)
        {
            if (updateButton.Equals("Cancel"))
            {
                return(Redirect(CacheHelper.GetPreviousPage(_cache)));
            }

            CacheHelper.ResetMessagesInCache(_cache);

            try
            {
                await DigitalTwinsHelper.DeleteDeviceAsync(model.SelectedDeviceItem, _cache, Loggers.SilentLogger);

                return(Redirect(CacheHelper.GetPreviousPage(_cache)));
            }
            catch (Exception ex)
            {
                await FeedbackHelper.Channel.SendMessageAsync(ex.InnerException.ToString(), MessageType.Info);

                return(View());
            }
        }