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

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

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