public ActionResult Info(EventsViewModels model) { var challenge = _challengeService.QueryableCustom().Where(w => w.IsActive && w.ToChallengeId == Common.CurrentUser.Id && w.UserId == model.UserId).FirstOrDefault(); challenge.IsAccepted = true; _challengeService.Update(challenge); _unitOfWork.SaveChanges(); return(RedirectToAction("Index")); }