Esempio n. 1
0
 public void BindingModelToEntity()
 {
     var bindedmodel = new ClipboardGetBindingModel {
         TypeId    = 10,
         Content   = "cnt",
         CreatedAt = null
     };
 }
Esempio n. 2
0
        public async Task <IActionResult> Get([FromQuery] ClipboardGetBindingModel collection)
        {
            try {
                var query  = _mapper.Map <ClipboardGetPagingSchema>(collection);
                var result = await _clipboardService.PagingAsync(query).ConfigureAwait(true);

                return(Ok(new { result, query.TotalPages }));
            }
            catch (Exception ex) {
                Log.Error(ex, ex.Source);
                return(Problem());
            }
        }