Ejemplo n.º 1
0
        public object Any(List_Jmjm6 request)
        {
            CommonResponse ecr = new CommonResponse();

            ecr.initial();
            try
            {
                ListService ls = new ListService();
                ls.ListJmjm6(auth, request, list_Jmjm6_Logic, ecr, this.Request.Headers.GetValues("Signature"), this.Request.RawUrl);
            }
            catch (Exception ex)
            {
                ecr.meta.code           = 599;
                ecr.meta.message        = "The server handle exceptions, the operation fails.";
                ecr.meta.errors.code    = ex.HResult;
                ecr.meta.errors.field   = ex.HelpLink;
                ecr.meta.errors.message = ex.Message.ToString();
            }
            return(ecr);
        }
Ejemplo n.º 2
0
 public void ListJmjm6(Auth auth, List_Jmjm6 request, List_Jmjm6_Logic list_Jmjm6_Logic, CommonResponse ecr, string[] token, string uri)
 {
     if (auth.AuthResult(token, uri))
     {
         ecr.data.results = list_Jmjm6_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";
     }
 }
Ejemplo n.º 3
0
 public void ListJmjm6(Auth auth, List_Jmjm6 request, List_Jmjm6_Logic list_Jmjm6_Logic, CommonResponse ecr, string[] token, string uri)
 {
     if (auth.AuthResult(token, uri))
     {
         ecr.data.results = list_Jmjm6_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";
     }
 }
Ejemplo n.º 4
0
 public object Any(List_Jmjm6 request)
 {
     CommonResponse ecr = new CommonResponse();
     ecr.initial();
     try
     {
         ListService ls = new ListService();
         ls.ListJmjm6(auth, request, list_Jmjm6_Logic, ecr, this.Request.Headers.GetValues("Signature"), this.Request.RawUrl);
     }
     catch (Exception ex)
     {
         ecr.meta.code = 599;
         ecr.meta.message = "The server handle exceptions, the operation fails.";
         ecr.meta.errors.code = ex.HResult;
         ecr.meta.errors.field = ex.HelpLink;
         ecr.meta.errors.message = ex.Message.ToString();
     }
     return ecr;
 }