public string ExportModule(Module module) { string content = ""; List <Models.BusinessCardDisplay> BusinessCardDisplays = _BusinessCardDisplayRepository.GetBusinessCardDisplays(module.ModuleId).ToList(); if (BusinessCardDisplays != null) { content = JsonSerializer.Serialize(BusinessCardDisplays); } return(content); }
public IEnumerable <Models.BusinessCardDisplay> Get(string moduleid) { return(_BusinessCardDisplayRepository.GetBusinessCardDisplays(int.Parse(moduleid))); }