示例#1
0
        public JsonResult Insert_SaleTarget(SaleTargetVM SaleTargetVM)
        {
            bool result = false;

            string msg = "Failed to save record..";

            result = SaleTargetMethod.Insert_SaleTarget(SaleTargetVM, ref msg);

            if (result)
            {
                msg = "Successfully Added";
            }

            return(Json(new { Success = result, Message = msg }, JsonRequestBehavior.AllowGet));
        }
示例#2
0
        public JsonResult Select_SaleTarget(string dealer)
        {
            string data   = "";
            bool   result = false;
            string msg    = "Failed to Get Data..";

            data = SaleTargetMethod.Select_SaleTarget(dealer, ref msg);

            if (!string.IsNullOrEmpty(data))
            {
                result = true;
            }

            return(Json(new { Success = result, Response = data }, JsonRequestBehavior.AllowGet));
        }