public Models.BusinessCardDashboard Post([FromBody] Models.BusinessCardDashboard BusinessCardDashboard)
 {
     if (ModelState.IsValid && BusinessCardDashboard.ModuleId == _entityId)
     {
         BusinessCardDashboard = _BusinessCardDashboardRepository.AddBusinessCardDashboard(BusinessCardDashboard);
         _logger.Log(LogLevel.Information, this, LogFunction.Create, "BusinessCardDashboard Added {BusinessCardDashboard}", BusinessCardDashboard);
     }
     return(BusinessCardDashboard);
 }
        public void ImportModule(Module module, string content, string version)
        {
            List <Models.BusinessCardDashboard> BusinessCardDashboards = null;

            if (!string.IsNullOrEmpty(content))
            {
                BusinessCardDashboards = JsonSerializer.Deserialize <List <Models.BusinessCardDashboard> >(content);
            }
            if (BusinessCardDashboards != null)
            {
                foreach (var BusinessCardDashboard in BusinessCardDashboards)
                {
                    _BusinessCardDashboardRepository.AddBusinessCardDashboard(new Models.BusinessCardDashboard {
                        ModuleId = module.ModuleId, Name = BusinessCardDashboard.Name
                    });
                }
            }
        }