public ActionResult GetMail(int id) { var mng = new ContractsManager(); var item = mng.GetMail(id); return(Json(new { id = item.id, treckNumber = item.treckNumber, from = item.from, to = item.to, statusID = item.statusID, systemMail = item.systemMail, date = item.date.ToString("dd.MM.yyyy"), treckNumberReplay = item.treckNumberReplay, dateReplay = item.dateReplay, //.ToString("dd.MM.yyyy"), desc = item.desc })); }