public List <IViewModel> SearchData(IDTO inputDto) { _mySearchRepository = RepCreator.GetRepSearcher(); _search = new Search(inputDto, _mySearchRepository); return(_search.GetViewModel()); }
public List <IViewModel> GetAll(int input) { _myGetAllRepository = RepCreator.GetRepAll(); _getAll = new GetAll(input, _myGetAllRepository); return(_getAll.GetViewModel()); }
public IViewModel DeleteData(IDTO inputDto) { _myRepository = RepCreator.GetRepDeleter(); _sru = new SaveReadUpdate(inputDto, _myRepository); return(_sru.GetViewModel()); }