コード例 #1
0
        public ActionResult GetContract(int id)
        {
            var mng  = new ContractsManager();
            var item = mng.GetContract(id);

            item.path = CopyFileOnFolderID(item.id, item.path);

            return(Json(new
            {
                id = item.id,
                number = item.number,
                path = item.path,
                typeID = item.typeID,
                statusID = item.statusID,
                contagentID = item.contagentID,
                date = item.date.ToString("dd.MM.yyyy"),
                summa = item.summa,
                desc = item.desc
            }));
        }