Inheritance: System.Entity
        public ActionResult Add(SessionsAddEditModel model)
        {
            if (!ModelState.IsValid)
                return View(model);

            var user = _repository.Find<UserProfile>().GetBy(_currentUser.Email);

            var presentation = new Session(user, model.Title, model.Description, model.Level, model.Category);

            _repository.Save(presentation);

            return RedirectTo<SessionsController>(c => c.Show(presentation.Id, presentation.Title.MakeUrlFriendly()));
        }
        public bool Owns(Session session)
        {
            if (session == null)
                return false;

            var user = _repository.Find<UserProfile>().GetBy(Email);

            return user != null && user.Id == session.UserId;
        }
 public bool Owns(Session session)
 {
     return false;
 }