public static Company CreateDefaultCompany()
        {
            var company = new Company()
            {
                Name = "Financial Solutions Inc.",
                CompanyCode = "100",
                ShortName = "FSI",
            };

            _context.Companies.Add(company);
            _context.SaveChanges();

            return company;
        }
示例#2
0
        public static Company CreateDefaultCompany()
        {
            var company = new Company()
            {
                Name = "Financial Solutions Inc.",
                CompanyCode = "100",
                ShortName = "FSI",
                CreatedBy = "System",
                CreatedOn = DateTime.Now,
                ModifiedBy = "System",
                ModifiedOn = DateTime.Now
            };

            _context.Companies.Add(company);
            _context.SaveChanges();

            return company;
        }