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