public void Add(int id, HallAddInputModel model)
        {
            var hallsConferences = new HallsConferences
            {
                ConferenceId = id,
                HallId       = model.HallId
            };

            this.context.HallsConferences.Add(hallsConferences);
            this.context.SaveChanges();
        }
示例#2
0
        public IActionResult Add(int id, HallAddInputModel model)
        {
            this.hallService.Add(id, model);

            return(this.Redirect("/Conference/Own"));
        }