コード例 #1
0
 public IEnumerable <Category> TypeId(long id)
 {
     if (id < 1 || id > _type.AllTypes.Count())
     {
         throw new Exception("Invalid id");
     }
     return(_repo.GetCategoriesByType(id));
 }