示例#1
0
 public HttpResponseMessage GetBranchesName()
 {
     try
     {
         List <string> branches = branchMg.GetBranchesName();
         return(Request.CreateResponse(HttpStatusCode.OK, branches));
     }
     catch (Exception ex)
     {
         return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex));
     }
 }