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