コード例 #1
0
        public async Task <JsonResult> Histories(QueryCommonModel model)
        {
            var result = new List <TaskItemProcessHistoryModel>();

            try
            {
                var filter = _mapper.Map <QueryCommonDto>(model);
                var dto    = await _taskItemService.GetTaskHistories(filter);

                result = _mapper.Map <List <TaskItemProcessHistoryModel> >(dto);
            }
            catch (Exception ex)
            {
                _loggerServices.WriteError(ex.Message);
            }
            return(Json(result, JsonRequestBehavior.AllowGet));
        }