diff --git a/system/Tnb.Systems/Permission/DepartmentService.cs b/system/Tnb.Systems/Permission/DepartmentService.cs index 86abdfd4..a50f9a88 100644 --- a/system/Tnb.Systems/Permission/DepartmentService.cs +++ b/system/Tnb.Systems/Permission/DepartmentService.cs @@ -632,38 +632,38 @@ public class DepartmentService : IDepartmentService, IDynamicApiController, ITra if (dictionary.TryGetValue("roweqp", out var value)) { List eqpEquipments = JsonConvert.DeserializeObject>(JsonConvert.SerializeObject(value)); - return new AuthResponse(200, "", new Dictionary() + return new Dictionary() { - ["list"] = eqpEquipments.Select(x=>new + ["list"] = eqpEquipments.Select(x => new { id = x.id, code = x.code, name = x.name }).ToList(), - }); + }; } } else { if (dictionary.TryGetValue("rowprocess", out var value)) { - List eqpEquipments = JsonConvert.DeserializeObject>(JsonConvert.SerializeObject(value)); - return new AuthResponse(200, "", new Dictionary() + List processes = JsonConvert.DeserializeObject>(JsonConvert.SerializeObject(value)); + return new Dictionary() { - ["list"] = eqpEquipments.Select(x=>new + ["list"] = processes.Select(x=>new { id = x.id, code = x.process_code, name = x.process_name }).ToList(), - }); + }; } } } - return new AuthResponse(200, "", new Dictionary() + return new Dictionary() { ["list"] = Enumerable.Empty() - }); + }; } #endregion