Exemplo n.º 1
0
        public ActionResult RequestRelationGVPDelete([ModelBinder(typeof(DevExpressEditorsBinder))] System.Int32 Id)
        {
            if (Id >= 0)
            {
                try
                {
                    // Insert here a code to delete the RelationRequest from your model
                    var RequestRelation = RelationRequestViewModel.Find(Id);
                    RequestRelation.Delete();
                }
                catch (Exception e)
                {
                    ViewData["EditError"] = e.Message;
                }
            }
            var model = RelationRequestViewModel.GetRelationRequestList();

            return(PartialView(RquestRelationView, model));
        }
Exemplo n.º 2
0
        public ActionResult RequestRelationGVPUpdate([ModelBinder(typeof(DevExpressEditorsBinder))]  RelationRequestViewModel RelationRequest)
        {
            if (ModelState.IsValid)
            {
                try
                {
                    // Insert here a code to update the RelationRequest in your model
                    RelationRequest.Update();
                }
                catch (Exception e)
                {
                    ViewData["EditError"] = e.Message;
                }
            }
            else
            {
                ViewData["EditError"] = RelationRequest.GetModelStateError(ModelState);
            }
            var model = RelationRequestViewModel.GetRelationRequestList();

            return(PartialView(RquestRelationView, model));
        }
Exemplo n.º 3
0
        public ActionResult RequestRelationGVP()
        {
            var model = RelationRequestViewModel.GetRelationRequestList();

            return(PartialView(RquestRelationView, model));
        }