예제 #1
0
 protected User GetCurrentUser()
 {
     using (var context = new GeneSythesisDBContext())
     {
         return(context.Users.FirstOrDefault(u => u.Name.Equals(User.Identity.Name)));
     }
 }
예제 #2
0
 public StatusController()
 {
     db = new GeneSythesisDBContext();
 }
예제 #3
0
 public ModStructuresService(GeneSythesisDBContext context)
 {
     _db = context;
 }
예제 #4
0
 public SpeciesService(GeneSythesisDBContext context)
 {
     _db = context;
 }
예제 #5
0
 public MaterialRequestsService(GeneSythesisDBContext dbContext)
 {
     _db = dbContext;
 }
예제 #6
0
 public AuthorizationService(GeneSythesisDBContext context)
 {
     _db = context;
 }
예제 #7
0
 public SpeciesService()
 {
     _db = new GeneSythesisDBContext();
 }
예제 #8
0
 public DuplexesService()
 {
     _db = new GeneSythesisDBContext();
 }
예제 #9
0
 public StrandsService()
 {
     _db = new GeneSythesisDBContext();
 }
예제 #10
0
 public ModifierTemplatesService(GeneSythesisDBContext dbContext)
 {
     _db = dbContext;
 }
예제 #11
0
 public InstrumentsService(GeneSythesisDBContext context)
 {
     _db = context;
 }
예제 #12
0
 public SynthesisRequestsService(GeneSythesisDBContext dbContext)
 {
     _db = dbContext;
 }
예제 #13
0
 public TargetsService(GeneSythesisDBContext context)
 {
     _db = context;
 }
예제 #14
0
 public TargetsService()
 {
     _db = new GeneSythesisDBContext();
 }