Esempio n. 1
0
 public static TeamManageModel GetTeam(int cellId)
 {
     using (var ctx = new Entities())
     {
         var item = ctx.Cells.FirstOrDefault(i => i.CellID == cellId);
         var model = new TeamManageModel(item);
         return model;
     }
 }
Esempio n. 2
0
 public static TeamManageModel GetTeam(int cellId)
 {
     using (var ctx = new Entities())
     {
         var item  = ctx.Cells.FirstOrDefault(i => i.CellID == cellId);
         var model = new TeamManageModel(item);
         return(model);
     }
 }