public ActionResult Delete(long id, Department department)
        {
            try
            {
                activeUser = userBll.GetUserById((long)HttpContext.Session.GetInt32("userId"));
                ViewData["sessionData"] = new int?[] { HttpContext.Session.GetInt32("admin"), HttpContext.Session.GetInt32("language") };

                if (activeUser.Administrator > 0)
                {
                    foreach (FlexDesk desk in flexDeskBll.ShowAllFlexdesks().Where(f => f.DepartmentId == id))
                    {
                        flexDeskBll.DeleteFlexDesk(desk.FlexDeskId);
                    }
                    departmentBll.DeleteDepartment(id);
                }

                return(RedirectToAction(nameof(Index)));
            }
            catch
            {
                ViewData["sessionData"] = new int?[] { HttpContext.Session.GetInt32("admin"), HttpContext.Session.GetInt32("language") };
                return(View());
            }
        }
 public void Delete(long id)
 {
     departmentBll.DeleteDepartment(id);
 }
 public void Delete(long id)
 {
     departmentBll.DeleteDepartment(id);
     //departmentProcessor.Delete(id);
 }