static public Point GetPointByName(string Pointname) { Point Pointtemp = null; using (PointRepository Pointrepo = new PointRepository()) { Pointtemp = Pointrepo.GetSingleByName(Pointname); } return(Pointtemp); }