コード例 #1
0
        public List <ApiDocumentModel> GetAll()
        {
            //List<ApiDocumentModel> docList = new List<ApiDocumentModel>
            //{
            //    new ApiDocumentModel
            //    {
            //        ID = 1,
            //        Document = new byte[100],
            //        Authuorization = true,
            //        InsuranceID = 1002
            //    },
            //    new ApiDocumentModel
            //    {
            //        ID = 2,
            //        Document = new byte[100],
            //        Authuorization = true,
            //        InsuranceID = 1002
            //    },
            //};
            //return docList;

            return(_documentManager.GetAll <ApiDocumentModel>());
        }
コード例 #2
0
 public async Task <ActionResult <ApiResult <List <Document> > > > GetAll()
 {
     return(ReturnResponse(() => _documentManager.GetAll()));
 }