} //Injected by IOC public object Get(Todos request) { // set custom filename logic here, to be read later in the response filter on text/csv response this.Request.SetItem("csv-filename", "customfilename"); return(request.Ids.IsEmpty() ? Repository.GetAll() : Repository.GetByIds(request.Ids)); }
public void Delete(Todos request) { Repository.DeleteByIds(request.Ids); }