Beispiel #1
0
        public static UsersManager GetInstance()
        {
            if (instance == null)
                instance = new UsersManager();

            return instance;
        }
Beispiel #2
0
        public static UsersManager GetInstance()
        {
            if (instance == null)
            {
                instance = new UsersManager();
            }

            return(instance);
        }
Beispiel #3
0
        public HttpResponseMessage save([FromBody] string[] info)
        {
            User usuario = UsersManager.GetInstance().saveUserFeed(info[0], info[1], info[2]);

            if (usuario != null)
            {
                return(Request.CreateResponse(HttpStatusCode.OK, usuario));
            }
            else
            {
                return(Request.CreateResponse(HttpStatusCode.NotFound, usuario));
            }
        }
Beispiel #4
0
 public static void ClearInstance()
 {
     instance = new UsersManager();
 }
Beispiel #5
0
 public static void ClearInstance()
 {
     instance = new UsersManager();
 }