Пример #1
0
        public ActionResult Delete(HOMEModel model)
        {
            var da = new HOMEDA();

            da.DTO.Model.ID   = model.ID;
            da.DTO.Model.DATA = model.DATA;

            da.DeleteNoEF(da.DTO);
            return(View());
        }
Пример #2
0
        public ActionResult Contact(HOMEModel model)
        {
            ViewBag.Message = "Your contact page.";
            var da = new HOMEDA();

            da.DTO.Model.ID   = model.ID;
            da.DTO.Model.DATA = model.DATA;

            da.UpdateNoEF(da.DTO);
            return(View());
        }
Пример #3
0
        public ActionResult About(HOMEModel model)
        {
            ViewBag.Message = "Your application description page.";
            var da = new HOMEDA();

            da.DTO.Model.ID   = model.ID;
            da.DTO.Model.DATA = model.DATA;

            da.InsertNoEF(da.DTO);

            return(View());
        }