public ActionResult Index() { return(View(_frigoRepository.Get(SessionManager.User.Id).Select(c => new ViewContent() { Id = c.Id, Name = c.Name, AddedDate = c.AddedDate, ExpirationDate = c.ExpirationDate }))); }
public IEnumerable <Content> Get(int userId) { return(_globalRepository.Get(userId).Select(c => c.ToClient())); }