Пример #1
0
        public IEnumerable <SectorTriangle> Get(int id)
        {
            ENodeb eNodeb = eNodebRepository.GetAll().FirstOrDefault(x => x.ENodebId == id);
            IQueryOutdoorCellsService <EvaluationOutdoorCell> service
                = new ByENodebQueryOutdoorCellService <EvaluationOutdoorCell>(
                      cellRepository, eNodeb, (c, e) => new EvaluationOutdoorCell(c, e));
            List <EvaluationOutdoorCell> outdoorCells = service.Query();

            return(outdoorCells.GetSectors());
        }
Пример #2
0
 public IEnumerable<SectorTriangle> Get(int id)
 {
     ENodeb eNodeb = eNodebRepository.GetAll().FirstOrDefault(x => x.ENodebId == id);
     IQueryOutdoorCellsService<EvaluationOutdoorCell> service
         = new ByENodebQueryOutdoorCellService<EvaluationOutdoorCell>(
         cellRepository, eNodeb, (c,e)=>new EvaluationOutdoorCell(c,e));
     List<EvaluationOutdoorCell> outdoorCells = service.Query();
     return outdoorCells.GetSectors();
 }
Пример #3
0
 public IHttpActionResult Get(int id)
 {
     ENodeb eNodeb = eNodebRepository.GetAll().FirstOrDefault(x => x.ENodebId == id);
     if (eNodeb == null) return BadRequest("ENodeb Id Not Found!");
     IQueryOutdoorCellsService<EvaluationOutdoorCell> service
         = new ByENodebQueryOutdoorCellService<EvaluationOutdoorCell>(
         cellRepository, eNodeb, (c,e)=>new EvaluationOutdoorCell(c,e));
     List<EvaluationOutdoorCell> outdoorCells = service.Query();
     if (outdoorCells.Count == 0) return BadRequest("Cell list is empty!");
     return Ok(outdoorCells.GetSectors());
 }