Exemplo n.º 1
0
        public JsonResult SendServey(string PoolIds, string SurveyId)
        {
            long sId = Convert.ToInt64(SurveyId);

            string[] cityIdList = PoolIds.Split(",");
            foreach (var item in cityIdList)
            {
                _survey.SendSurveyFromPool(sId, Convert.ToInt64(item), null, _pool.GetPoolById(Convert.ToInt64(item)));
            }
            return(Json(new
            {
                status = "success",
            }));
        }
Exemplo n.º 2
0
        public JsonResult GetPool(long Id = 0)
        {
            TblPool tblPool = _pool.GetPoolById(Id);

            if (tblPool != null)
            {
                return(Json(new
                {
                    status = "success",
                    data = tblPool
                }));
            }

            return(Json(new
            {
                status = "fail",
                data = ""
            }));
        }