Esempio n. 1
0
        public IActionResult Post([FromBody] AdvertModel model)
        {
            if (model != null)
            {
                model.CreatedBy = UserId;
            }

            var op = _service.AddAdvertOrUpdate(model);

            return(Ok(op));
        }