public IActionResult GetAll() { // List<Department> department = new List<Department>(); IEnumerable <Department> department = departmentBAL.GetAll(); if (department != null) { return(Ok(new { success = true, response = department })); } else { return(Ok(new { success = false, response = "Data Not Found" })); } }