public static void SeedHostDb(PMSDbContext context) { context.SuppressAutoSetTenantId = true; //Host seed new InitialHostDbBuilder(context).Create(); //Default tenant seed (in host database). new DefaultTenantBuilder(context).Create(); new TenantRoleAndUserBuilder(context, 1).Create(); }
public string GetUserRS(string userName, string password) { using (var _context = new PMSDbContext()) { UserMaster userMaster = new UserMaster(); userMaster = _context.UserMasters.Where(m => m.UserName == userName && m.Password == password).FirstOrDefault(); if (userMaster == null) { ModelState.AddModelError("Password", "Invalid login attempt."); return("False"); } else { //HttpContext.Session.SetString("UserName", userMaster.UserName); return(userMaster.UserName.ToString()); } } }
public DefaultSettingsCreator(PMSDbContext context) { _context = context; }
public DefaultLanguagesCreator(PMSDbContext context) { _context = context; }
public TestDataBuilder(PMSDbContext context, int tenantId) { _context = context; _tenantId = tenantId; }
public TenantRoleAndUserBuilder(PMSDbContext context, int tenantId) { _context = context; _tenantId = tenantId; }
public MedicineService(PMSDbContext context) : base(context) { }
public TestEditionsBuilder(PMSDbContext context) { _context = context; }
public InitialHostDbBuilder(PMSDbContext context) { _context = context; }
public TestSubscriptionPaymentBuilder(PMSDbContext context, int tenantId) { _context = context; _tenantId = tenantId; }
public ModuleService(PMSDbContext context) : base(context) { }
public RoleService(PMSDbContext context) : base(context) { }
public TestOrganizationUnitsBuilder(PMSDbContext context, int tenantId) { _context = context; _tenantId = tenantId; }
public HostRoleAndUserCreator(PMSDbContext context) { _context = context; }
public DefaultEditionCreator(PMSDbContext context) { _context = context; }
public DefaultTenantBuilder(PMSDbContext context) { _context = context; }
public TaskController(PMSDbContext dbContext) { context = dbContext; }
public OrgService(PMSDbContext context) : base(context) { }
public ProjectController(PMSDbContext dbContext) { context = dbContext; }
public UserService(PMSDbContext context) : base(context) { }