Exemple #1
0
        public ActionResult Edit(int id)
        {
            var vm = new CreateEditThemaVM();

            vm.Thema = repoThema.GetById(id);

            return(View(vm));
        }
Exemple #2
0
 public ActionResult Edit(CreateEditThemaVM vm)
 {
     try
     {
         repoThema.Update(vm.Thema);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }
Exemple #3
0
 public ActionResult Create(CreateEditThemaVM vm)
 {
     try
     {
         repoThema.Insert(vm.Thema);
         return(RedirectToAction("Index"));
     }
     catch (Exception e)
     {
         Debug.WriteLine(e.Message);
         return(View());
     }
 }
Exemple #4
0
        public ActionResult Create()
        {
            var vm = new CreateEditThemaVM();

            return(View(vm));
        }