diff --git a/NumberSearch.Mvc/Controllers/CartAPIController.cs b/NumberSearch.Mvc/Controllers/CartAPIController.cs index f05d4235..f855af31 100644 --- a/NumberSearch.Mvc/Controllers/CartAPIController.cs +++ b/NumberSearch.Mvc/Controllers/CartAPIController.cs @@ -2,15 +2,12 @@ using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; -using Microsoft.AspNetCore.Mvc.ViewFeatures; using Microsoft.AspNetCore.OutputCaching; using NumberSearch.DataAccess; using NumberSearch.DataAccess.BulkVS; using NumberSearch.Mvc.Models; -using Org.BouncyCastle.Bcpg.Sig; - using PhoneNumbersNA; using Serilog; diff --git a/NumberSearch.Ops/Views/Carriers/Index.cshtml b/NumberSearch.Ops/Views/Carriers/Index.cshtml index 1125faef..3a098572 100644 --- a/NumberSearch.Ops/Views/Carriers/Index.cshtml +++ b/NumberSearch.Ops/Views/Carriers/Index.cshtml @@ -5,8 +5,146 @@

📯 Carriers

-@* Create New - *@
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Total CarriersUnique CarriersUnique OCNsUnique SPIDsUnique LEC TypesUnique LECs
@Model?.Count()@Model?.Select(x => x.Name).Distinct().Count()@Model?.Select(x => x.Ocn).Distinct().Count()@Model?.Select(x => x.Spid).Distinct().Count()@Model?.Select(x => x.Lectype).Distinct().Count()@Model?.Select(x => x.Lec).Distinct().Count()
+
+
+
+
+ + + + + + + + + @foreach (var lectype in Model?.Select(x => x.Lectype).Distinct()) + { + + } + + +
LECTYPE
@Model?.Where(x => x.Lectype == lectype).Count() - @lectype
+
+
+
+

Aggregated Carriers

+
+ + + + + + + + + + + + + + + @{ + var topLevelCarriers = Model.DistinctBy(y => y.Name).OrderByDescending(x => x?.Name); + foreach (var product in topLevelCarriers) + { + var types = Model.Where(x => x.Name == product.Name && !string.IsNullOrWhiteSpace(x.Type)).Select(x => x.Type).Distinct(); + var lecs = Model.Where(x => x.Name == product.Name && !string.IsNullOrWhiteSpace(x.Lec)).Select(x => x.Lec).Distinct(); + var lectypes = Model.Where(x => x.Name == product.Name && !string.IsNullOrWhiteSpace(x.Lectype)).Select(x => x.Lectype).Distinct(); + var ocns = Model.Where(x => x.Name == product.Name && !string.IsNullOrWhiteSpace(x.Ocn)).Select(x => x.Ocn).Distinct(); + var spids = Model.Where(x => x.Name == product.Name && !string.IsNullOrWhiteSpace(x.Spid)).Select(x => x.Spid).Distinct(); + var logos = Model.Where(x => x.Name == product.Name && !string.IsNullOrWhiteSpace(x.LogoLink)).Select(x => x.LogoLink).Distinct(); + var countRecords = Model.Where(x => x.Name == product.Name).Count(); + + + + + + + + + + + + } + } + +
+ Name + + Logo + + Type + + LEC + + LEC Type + + SPID + + OCN + Unique OCNs
+ @product?.Name + + @foreach (var logo in logos) + { + @product?.Name + } + + @foreach (var type in types) + { +

@type

+ } +
+ @foreach (var lec in lecs) + { +

@lec

+ } +
+ @foreach (var lectype in lectypes) + { +

@lectype

+ } +
+ @foreach (var spid in spids) + { +

@spid

+ } +
+ @foreach (var ocn in ocns) + { +

@ocn

+ } +
+ @countRecords +
+
+

Recorded Carriers