using CallCenter.Utility;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using System.Web.Mvc;


namespace CallCenterApi_.Interface.Controllers.BaseController
{
    public class BaseController : ApiController
    {
        //protected virtual JsonResult Success(string message)
        //{
        //    //var person = new
        //    //{
        //    //    Name = "张三",
        //    //    Age = 22,
        //    //    Sex = "男"
        //    //};
        //    //return Json(person);
         
        //    //ss = new AjaxResult { state = ResultTypes.success.ToString(), message = message };
        //    //return (JsonResult)ss;
        //}
        //protected virtual ActionResult Success(string message, object data)
        //{
        //    return Content(new AjaxResult { state = ResultTypes.success.ToString(), message = message, data = data }.ToJson());
        //}
        //protected virtual ActionResult Error(string message)
        //{
        //    return Content(new AjaxResult { state = ResultTypes.error.ToString(), message = message }.ToJson());
        //}
    }
}