public void List_Impr1(Auth auth, List_Impr1 request, List_Impr1_Logic list_Impr1_Logic, CommonResponse ecr, string[] token, string uri) { if (auth.AuthResult(token, uri)) { ecr.data.results = list_Impr1_Logic.GetList(request); if (ecr.data.results != null) { ecr.meta.code = 200; ecr.meta.message = "OK"; } else { ecr.meta.code = 612; ecr.meta.message = "The specified resource does not exist"; } } else { ecr.meta.code = 401; ecr.meta.message = "Unauthorized"; } }