protected User GetCurrentUser() { using (var context = new GeneSythesisDBContext()) { return(context.Users.FirstOrDefault(u => u.Name.Equals(User.Identity.Name))); } }
public StatusController() { db = new GeneSythesisDBContext(); }
public ModStructuresService(GeneSythesisDBContext context) { _db = context; }
public SpeciesService(GeneSythesisDBContext context) { _db = context; }
public MaterialRequestsService(GeneSythesisDBContext dbContext) { _db = dbContext; }
public AuthorizationService(GeneSythesisDBContext context) { _db = context; }
public SpeciesService() { _db = new GeneSythesisDBContext(); }
public DuplexesService() { _db = new GeneSythesisDBContext(); }
public StrandsService() { _db = new GeneSythesisDBContext(); }
public ModifierTemplatesService(GeneSythesisDBContext dbContext) { _db = dbContext; }
public InstrumentsService(GeneSythesisDBContext context) { _db = context; }
public SynthesisRequestsService(GeneSythesisDBContext dbContext) { _db = dbContext; }
public TargetsService(GeneSythesisDBContext context) { _db = context; }
public TargetsService() { _db = new GeneSythesisDBContext(); }