public ActionResult SaveSubscribe(string email) { if (ModelState.IsValid) { var subscribe = new Subscribe() { Email = email }; _subscribeService.Insert(subscribe); return(Json(true)); } return(Json(false)); }
public async Task <ServiceResponse <SubscribeDto> > Post(int userId, SubscribeDto model) { return(_repository.Insert(userId, model)); }