public static UsersManager GetInstance() { if (instance == null) instance = new UsersManager(); return instance; }
public static UsersManager GetInstance() { if (instance == null) { instance = new UsersManager(); } return(instance); }
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)); } }
public static void ClearInstance() { instance = new UsersManager(); }