// POST: Apps/Delete/5
        public async Task <IActionResult> Delete(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            await _appRepository.DeleteAppAsync(id.Value);

            return(this.RedirectToAction("Index"));
        }