コード例 #1
0
 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
     })));
 }
コード例 #2
0
 public IEnumerable <Content> Get(int userId)
 {
     return(_globalRepository.Get(userId).Select(c => c.ToClient()));
 }