Exemplo n.º 1
0
 public void TS_Saus(Auth auth, Saus request, Saus_Logic logic, CommonResponse ecr, string[] token, string uri)
 {
     if (auth.AuthResult(token, uri))
     {
         if (uri.IndexOf("/memo") > 0)
         {
             ecr.data.results = logic.GetMemo(request);
         }
         else if (uri.IndexOf("/update/memo") > 0)
         {
             ecr.data.results = logic.Update_Memo(request);
         }
         ecr.meta.code    = 200;
         ecr.meta.message = "OK";
     }
     else
     {
         ecr.meta.code    = 401;
         ecr.meta.message = "Unauthorized";
     }
 }
Exemplo n.º 2
0
        public void TS_Saus(Auth auth, Saus request, Saus_Logic logic, CommonResponse ecr, string[] token, string uri)
								{
												if (auth.AuthResult(token, uri))
												{
																if (uri.IndexOf("/memo") > 0)
																{
																				ecr.data.results = logic.GetMemo(request);
																}
																else if (uri.IndexOf("/update/memo") > 0)
																{
																				ecr.data.results = logic.Update_Memo(request);
																}
																ecr.meta.code = 200;
																ecr.meta.message = "OK";
												}
												else
												{
																ecr.meta.code = 401;
																ecr.meta.message = "Unauthorized";
												}
								}