Esempio n. 1
0
 public List <GroupViewModel> Read(GroupBindingModel model)
 {
     if (model == null)
     {
         return(groupStorage.GetFullList());
     }
     return(new List <GroupViewModel> {
         groupStorage.GetElement(model)
     });
 }
 public List <GroupViewModel> Read(GroupBindingModel model)
 {
     if (model == null)
     {
         return(_groupStorage.GetFullList());
     }
     if (model.Id.HasValue)
     {
         return(new List <GroupViewModel> {
             _groupStorage.GetElement(model)
         });
     }
     return(_groupStorage.GetFilteredList(model));
 }