public static InternalRepository getUniqueInstance() { if (uniqueInstance == null) { uniqueInstance = new InternalRepository(); } return(uniqueInstance); }
public DataAcessLayerPX() { client.BaseAddress = new Uri("http://162.243.173.162:3000/"); client.DefaultRequestHeaders.Accept.Clear(); client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); client.DefaultRequestHeaders.Accept.Add( new MediaTypeWithQualityHeaderValue("application/x-www-form-urlencoded")); internalRepository = InternalRepository.getUniqueInstance(); }