public static void SaveReport(string fileName, string menuCode, string parentMenuCode, string text) { ReportMenu menu = new ReportMenu { FileName = fileName, MenuCode = menuCode, ParentMenuCode = parentMenuCode, Text = text }; DataLayer.AddMenus(new[] { menu }); }