Exemplo n.º 1
0
        public JsonResult History(long id)
        {
            List <HistoryViewModel> historyList = historyModel.List(id).Select(h => new HistoryViewModel()
            {
                Date      = h.Date.ToString("dd/MM/yyyy hh:mm:ss"),
                PolicyFee = h.PolicyFee,
                Premium   = h.Premium,
                Insured   = h.Insured
            }).ToList();

            return(Json(historyList, JsonRequestBehavior.AllowGet));
        }