public void BindingModelToEntity() { var bindedmodel = new ClipboardGetBindingModel { TypeId = 10, Content = "cnt", CreatedAt = null }; }
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()); } }