protected override IList <Link> GetLinks(string basePath, Enum primaryEntityType, BLL_UserView entity = null) { EntityAction entityActions = EntityManager.GetEntityActions(entity); if (entityActions != null) { return(RouteHelper.BuildLinks(basePath, primaryEntityType, entityActions)); } return(null); }
protected override IList <Link> GetLinks(string basePath, Enum primaryEntityType, BLL_CLASS entity) { if (entity == null) { //TODO-PS: Revisit //// Initialize Pricing Analysis Manager when the Entity is NULL. Required for OPTIONS. //int? pricingAnalysisId = RouteHelper.GetIDFromUrl(Request.RequestUri, RouteHelper.RelativePathPricingAnalyses); //if (pricingAnalysisId.HasValue) // EntityManager.Get(pricingAnalysisId.Value, false); } EntityAction entityActions = EntityManager.GetEntityActions(entity); if (entityActions != null) { return(RouteHelper.BuildLinks(basePath, primaryEntityType, entityActions)); } return(null); }