Beispiel #1
0
 public void Delete([FromServices] ICATRepository repository, Guid id)
 {
     repository.Delete(id);
 }
Beispiel #2
0
 public IEnumerable GetAll([FromServices] ICATRepository repository)
 {
     return(repository.GetAll());
 }
Beispiel #3
0
 public CAT GetById([FromServices] ICATRepository repository, Guid id)
 {
     return(repository.GetById(id));
 }
 public CATHandler(ICATRepository repository)
 {
     _repository = repository;
 }