protected void ui_delegate_button_Click(object sender, EventArgs e)
 {
     User currentUser = (User)Session["user"];
     int user_id = Convert.ToInt32(ui_emplyoees_dropdown.SelectedValue.ToString());
     UserController userController = new UserController();
     Message msg = userController.actionGiveHeadPermissionToAnEmployee(user_id, Convert.ToInt32(currentUser.department));
     if (msg.condition)
     {
         Response.Cookies.Add(new HttpCookie("flash_message", "Successfully Saved.") { Path = "/" });
         Response.Cookies.Add(new HttpCookie("flash_css", "alert alert-success") { Path = "/" });
         Response.Redirect(Request.RawUrl);
     }
     else
     {
         Response.Cookies.Add(new HttpCookie("flash_message", msg.message) { Path = "/" });
         Response.Cookies.Add(new HttpCookie("flash_css", "alert alert-error") { Path = "/" });
     }
 }