예제 #1
0
 public int AddCompany(Company company)
 {
     _dbContext.Add(company);
     _dbContext.SaveChanges();
     return(company.CompanyId);
 }
예제 #2
0
 public void AssignUserToCompany(CompanyUser companyUser)
 {
     _dbContext.Add(companyUser);
     _dbContext.SaveChanges();
 }
예제 #3
0
 public void AddCategory(Category category)
 {
     category.Slug = GenerateCategorySlug(category.Name);
     _dbContext.Add(category);
     _dbContext.SaveChanges();
 }