Beispiel #1
0
        public ActionResult UpdateMission(MissionVM model)
        {
            try
            {
                MissionServices.Update(model, BPARepo);

                return(RedirectToAction("Mission"));
            }
            catch (Exception ex)
            {
                SetViewError(ex);
                return(View(model));
            }
        }
Beispiel #2
0
        public ActionResult CreateMission()
        {
            var model = MissionServices.GetNew(BPARepo);

            return(View(model));
        }
Beispiel #3
0
        public ActionResult UpdateMission(int id)
        {
            var model = MissionServices.GetById(id, BPARepo);

            return(View(model));
        }
Beispiel #4
0
        public ActionResult Mission()
        {
            var model = MissionServices.GetAll(BPARepo);

            return(View(model));
        }