public ActionResult GetInvoice(int id) { var mng = new ContractsManager(); var item = mng.GetInvoice(id); return(Json(new { id = item.id, number = item.number, statusID = item.statusID, contagentID = item.contagentID, date = item.date.ToString("dd.MM.yyyy"), desc = item.desc })); }