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