protected void StatusButton_Click(object sender, EventArgs e) { Category _Category = new Category(); _Category.Code = (txtCategoryCode.Text); if (txtStatus.Text == "Running") { int SuccessRunning = _CategoriesManager.StopStatus(_Category); if (SuccessRunning > 0) { Response.Redirect("~/Librarian/Categories/Status.aspx"); } } else { int SuccessStop = _CategoriesManager.RunningStatus(_Category); if (SuccessStop > 0) { Response.Redirect("~/Librarian/Categories/Status.aspx"); } } }