public static async Task <int> Delete(int id)
        {
            string url = string.Format("api/activitylog/delete?id={0}", id);

            return(await BotApiRequest <int> .GetRequest(url));
        }
        public static async Task <List <tbActivityLog> > Get(DateTime fromDate, DateTime toDate, string eventpayload = "*", int pagesize = 15, int pageindex = 1)
        {
            string url = string.Format("api/activitylog/get?eventpayload={0}&fromdate={1}&todate={2}&pageindex={3}", eventpayload, fromDate, toDate, pagesize, pageindex);

            return(await BotApiRequest <List <tbActivityLog> > .GetRequest(url));
        }