public async Task <IActionResult> Delete(int id)
 {
     if (await _partsService.TryDeletePart(id))
     {
         StatusMessage = $"Part was successfully deleted.";
         Success       = true;
     }
     else
     {
         StatusMessage = "There was an error handling your request. Try again, and if the issue persists contact site administration.";
         Success       = false;
     }
     return(RedirectToAction("Index", "Inventory"));
 }