public virtual Task <AppCore.Result <IEnumerable <model.Attachment> > > List(model.AttachmentListVM model, IDictionary <string, string> httpHeaders = null)
        {
            var routeParamValues = new Dictionary <string, string> {
                { "model", model == null ? null : model.ToString() }
            };
            const string url = "api/v1/Attachment/List";

            return(_client.SendAsync <IEnumerable <model.Attachment> >(true, url, routeParamValues, httpHeaders, model));
        }
Example #2
0
        public async Task <AppCore.Result <IEnumerable <m.Attachment> > > ListAsync(m.AttachmentListVM model)
        {
            try
            {
                //var result = (await _dbPBL.GetAttachmentsAsync(
                //        _parentID: model.ParentID,
                //        _type: (byte)model.Type
                //        )).ToListActionResult<m.Attachment>();

                //return result;

                return(AppCore.Result <IEnumerable <m.Attachment> > .Successful());
            }
            catch (Exception e)
            {
                throw e;
            }
        }
Example #3
0
 public Task <AppCore.Result <IEnumerable <Model.Attachment> > > List(Model.AttachmentListVM model)
 => _service.ListAsync(model);
Example #4
0
 public Task <AppCore.Result <IEnumerable <model.Attachment> > > ListAsync(model.AttachmentListVM model)
 => _dataSource.ListAsync(model);