public async Task <ActionResult> DeleteTest(int id) { try { var response = await _apiHandler.DeleteSimTest(id); Session.Message = new Message() { CssClassName = "alert-sucess", Title = "Success!", Messages = "Deleted." }; return(RedirectToAction("Index")); } catch { Session.Message = new Message() { CssClassName = "alert-error", Title = "Error!", Messages = "Operation Failed." }; return(View()); } }