public static void Create(AppDb context, IpNet i) { i.IdStr = Utility.Rand(16); i.DateCreate = DateTime.Now; i.DateUpdate = DateTime.Now; context.IpNets.Add(i); }
public static void Update(IpNet o, IpNet n) { o.DateUpdate = DateTime.Now; o.NetWork = n.NetWork; o.Ip = n.Ip; o.Aport = n.Aport; o.Tport = n.Tport; }