示例#1
0
        public IActionResult CreateNewSubscriber([FromBody] SubscriberCreateModel model)
        {
            var res = _subscriberService.CreateNewSubscriber(model);

            if (!res.Succeeded)
            {
                return(NotFound());
            }
            return(Ok(res));
        }
示例#2
0
        public async Task <IActionResult> CreateNewSubscriber([FromBody] SubscriberCreateModel model)
        {
            var res = await _subscriberService.CreateNewSubscriber(model);

            return(Ok(res));
        }