コード例 #1
0
        }                                               //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));
        }
コード例 #2
0
 public void Delete(Todos request)
 {
     Repository.DeleteByIds(request.Ids);
 }