Esempio n. 1
0
        //
        // GET: /AdminNews/Create
        public ActionResult Create()
        {
            activity activity = new activity()
            {

            };

            return View(activity);
        }
Esempio n. 2
0
        public ActionResult Create(activity activity)
        {
            try
            {

                UpdateModel(activity);

                ActivitiesRepository.Add(activity);
                ActivitiesRepository.Save();

                return RedirectToAction("Index", new { id = activity.id });
            }
            catch
            {

                return View(activity);
            }
        }
Esempio n. 3
0
 public void Delete(activity activity)
 {
     db.activities.DeleteOnSubmit(activity);
 }
Esempio n. 4
0
 public void Add(activity activity)
 {
     db.activities.InsertOnSubmit(activity);
 }
Esempio n. 5
0
 partial void Deleteactivity(activity instance);
Esempio n. 6
0
 partial void Updateactivity(activity instance);
Esempio n. 7
0
 partial void Insertactivity(activity instance);