public async Task <IActionResult> Create([Bind("Id,Email,SubscribingSourceId,SubscribingReason")] SubscribingUserViewModel subscribingUserViewModel) { if (ModelState.IsValid) { _subscribeRepository.Insert(subscribingUserViewModel); return(View("Success")); } return(View(subscribingUserViewModel)); }
public void Update(SubscribingUserViewModel item) { throw new NotImplementedException(); }
public async void Insert(SubscribingUserViewModel item) { _context.Add(item); await _context.SaveChangesAsync(); }