public ValidationResult GetAllDepartments(string id, out List <Sec_Department> deptList)
 {
     deptList = _deptDataService.GetAllDepartments(id, out _errorNumber);
     return(_errorNumber.Length > 0 ? new ValidationResult(_errorNumber, _localizationService.GetResource(_errorNumber))
         : ValidationResult.Success);
 }
 protected override async Task OnInitializedAsync()
 {
     Departments = (await DepartmentDataService.GetAllDepartments()).ToList();
 }