예제 #1
0
 public HttpResponseMessage GetName(dynamic SearchForm)
 {
     try
     {
         string RegID = string.Empty;
         RegID = (string)SearchForm.RegID;
         string    Namee = "";
         UserClass CLE   = new UserClass();
         Namee = CLE.Fn_UserName(RegID);
         string Blance = "";
         if (Namee != "")
         {
             Blance = Namee;
         }
         return(Request.CreateResponse(HttpStatusCode.OK, Blance));
     }
     catch (Exception ex)
     {
         return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, "500_Internal_Server_Error"));
     }
 }