public string ExportModule(Module module) { string content = ""; List <Models.BusinessCardDashboard> BusinessCardDashboards = _BusinessCardDashboardRepository.GetBusinessCardDashboards(module.ModuleId).ToList(); if (BusinessCardDashboards != null) { content = JsonSerializer.Serialize(BusinessCardDashboards); } return(content); }
public IEnumerable <Models.BusinessCardDashboard> Get(string moduleid) { return(_BusinessCardDashboardRepository.GetBusinessCardDashboards(int.Parse(moduleid))); }