Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- namespace IP.webAPI.Models
- {
- public class d
- {
- public IP.webAPI.ipEntities entity = new ipEntities();
- public addr_ a = new addr_();
- public bool c { get; set; }
- public int X = 0;
- public string IpOfClient { get; set; }
- public void saver(string ip)
- {
- a.IP = ip;
- for (int i = 0; i < entity.addr_.ToArray().Length; i++)
- {
- if(entity.addr_.ToArray()[i].IP == ip){
- entity.addr_.Add(a);
- entity.SaveChanges();
- }
- }
- IpOfClient = ip;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement