Ejemplo n.º 1
0
        /// <summary>
        /// Luu thong tin mua quang cao
        /// JP - 05/07/2018
        /// </summary>
        /// <returns></returns>
        //[Authorize]
        public JsonResult SaveBuyAdvertisement(AdvertisementCreateRequestModel model)
        {
            if (model != null)
            {
                model.UserId      = UserId;
                model.ECurrencyId = _mySessionManager.WebInfoData.ECurrency;

                var res = _advertisementService.AddNewAdvertisement(model);

                return(Json(res));
            }

            return(Json(1));
        }