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); } }
public IHttpActionResult PutNewRoomDeterminantMacIds([FromUri] string roomName, [FromBody] DeterminantMacIds fourMacIds) { fourMacIds.RoomName = roomName; _localizationServices.SetFourMeasurmentMacIds(fourMacIds); return(Ok()); }