Exemplo n.º 1
0
        public ActionResult Audited(int stauts, int id)
        {
            var edit = KonwledgeInfoservice.GetKonwledgeInfoForEdit(new NullableIdDto <long> {
                Id = id
            }).KonwledgeInfo;

            edit.Stauts       = stauts;
            edit.Auditor      = 1;
            edit.ReviewedDate = DateTime.Now;
            KonwledgeInfoservice.UpdateKonwledgeInfoAsync(edit);
            return(Success());
        }
        public ActionResult Create(int id = 0)
        {
            GetTsel();
            var model = new GetKonwledgeInfoForEditOutput();

            if (id > 0)
            {
                model = KonwledgeInfoservice.GetKonwledgeInfoForEdit(new NullableIdDto <long> {
                    Id = id
                });
            }
            return(View(model.KonwledgeInfo));
        }