示例#1
0
        public IActionResult GetAll(string type)
        {
            string query = "Statistical @Type";

            statistical = statisticalService.GetAll(query,
                                                    new SqlParameter("@Type", "month"));
            if (statistical.Count > 0)
            {
                return(Json(new { isSuccess = true, statistical = statistical }));
            }
            return(Json(new { isSuccess = false, message = "Cant get statistical" }));
        }