public void SetFourMeasurmentMacIds(DeterminantMacIds fourMacIds)
 {
     using (var ctx = new WifiLocalizerContext())
     {
         DatabaseHandler.AddElementToDataBase(ctx, ctx.DeterminantMacIds, fourMacIds);
     }
 }
        public void AddRSSIMeasurmentInXYPoint(RSSIMeasurmentPoint RSSIMeasurmentPoint)
        {
            using (var ctx = new WifiLocalizerContext())
            {
                DeterminantMacIds determinantMacIds = ctx.DeterminantMacIds.Find(RSSIMeasurmentPoint.RoomId);

                RSSIMeasurmentPoint.DeterminantMacIds = determinantMacIds;
                DatabaseHandler.AddElementToDataBase(ctx, ctx.RSSIMeasurmentPoints, RSSIMeasurmentPoint);
            }
        }
Example #3
0
        public IHttpActionResult PutNewRoomDeterminantMacIds([FromUri] string roomName, [FromBody] DeterminantMacIds fourMacIds)
        {
            fourMacIds.RoomName = roomName;

            _localizationServices.SetFourMeasurmentMacIds(fourMacIds);

            return(Ok());
        }