LittleDemon WebShell


Linux hosting5.siteguarding.com 3.10.0-962.3.2.lve1.5.88.el7.x86_64 #1 SMP Fri Sep 26 14:06:42 UTC 2025 x86_64
Path : /home/devsafetybis/.trash/yuvatrip.com/App_Code/
File Upload :
Command :
Current File : /home/devsafetybis/.trash/yuvatrip.com/App_Code/holidaysapi.cs

using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Linq;
using System.Web;
using System.Web.Script.Services;
using System.Web.Services;
using yuvatrip.common;
/// <summary>
/// Summary description for holidayapi
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
[System.Web.Script.Services.ScriptService]
public class holidaysapi : System.Web.Services.WebService
{
    holidaysservices holidays = new holidaysservices();
    dynamic data = new ExpandoObject(), status = new ExpandoObject(), response = new ExpandoObject();
    string result = "", clientid;
    bool login;
    
    public holidaysapi()
    {

    }
  
   

    [WebMethod(EnableSession = true)]
    [ScriptMethod(UseHttpGet = true)]
    public string expertspeak(dynamic criteria)
    {       
        response = holidays.expertspeak(criteria);
        return response;

    }

[WebMethod(EnableSession = true)]
    [ScriptMethod(UseHttpGet = true)]
    public string agentholidayquery(dynamic criteria)
    {
        criteria.Add("source", "Online");
        criteria.Add("source1", "yuvatrip.com");
      //  criteria.Add("source2", criteria["page"]);
        criteria.Add("clienttype", "Customer");
        criteria.Add("queryfor", "Holidays");
        response = holidays.newquery(criteria);
        return response;
       
    }

    [WebMethod(EnableSession = true)]
    [ScriptMethod(UseHttpGet = true)]
    public string GetHolidayDetailByID(dynamic criteria)
    {

        response = holidays.getdetailbyid(criteria);

        return response;
    }

    /* Post Method*/
    [WebMethod]
    public string destination(dynamic criteria)
    {
        criteria = JsonConvert.DeserializeObject<Dictionary<string, object>>(criteria);
        response = holidays.getdestinaions(criteria);
        return response;
    }
}

LittleDemon - FACEBOOK
[ KELUAR ]