コード例 #1
0
 public HttpResponseMessage GettorrentPowerCusDetails(HttpRequestMessage req, DL_TorrentPower dL_TorrentPower)
 {
     //bool _IsSuccess;
     if (dL_TorrentPower != null && dL_TorrentPower.Bu > 0 && !string.IsNullOrEmpty(dL_TorrentPower.CusAcc) &&
         !string.IsNullOrEmpty(dL_TorrentPower.Key) && !string.IsNullOrEmpty(dL_TorrentPower.UserId))
     {
         User user = new User()
         {
             Password = dL_TorrentPower.Key, UserId = dL_TorrentPower.UserId
         };
         Validation.UserCheck(user);
         if (Validation._IsSuccess)
         {
             BL_Service            bL_Service            = new BL_Service();
             DL_TorrentPowerReturn dL_TorrentPowerReturn = bL_Service.GetTorrentPowerDetails(dL_TorrentPower);
             if (bL_Service._IsSuccess)
             {
                 return(req.CreateResponse <DL_TorrentPowerReturn>(HttpStatusCode.OK, dL_TorrentPowerReturn));
             }
             else
             {
                 return(req.CreateErrorResponse(HttpStatusCode.InternalServerError, "ServerError"));
             }
         }
         return(req.CreateErrorResponse(HttpStatusCode.Unauthorized, "Unauthorized"));
     }
     return(req.CreateErrorResponse(HttpStatusCode.BadRequest, "Bad Request"));
 }
コード例 #2
0
        public ActionResult LoadCustomerTable(JQueryDataTableParamModel Param)
        {
            MYJSONTblCustom MYJSON = BL_Service.LoadServiceTable(Param, Request);

            return(Json(MYJSON, JsonRequestBehavior.AllowGet));
        }