Пример #1
0
        public ActionResult Create([Bind(Include = "Stream_Code,Description")] StreamTableViewModel streamTableViewModel)
        {
            if (ModelState.IsValid)
            {
                streamtablebl.AddStream(streamTableViewModel);
                return(RedirectToAction("Index"));
            }

            return(View(streamTableViewModel));
        }
Пример #2
0
        public void AddStream(StreamTableViewModel model)
        {
            var newstream = new StreamTable
            {
                Stream_Code = model.Stream_Code,
                Description = model.Description
            };

            uow.Repository <StreamTable>().Insert(newstream);
            uow.Save();
        }
Пример #3
0
 public void UpdateStream(StreamTableViewModel model)
 {
     throw new NotImplementedException();
 }