public async void AddDiscipline(AddSemesterDiscipline model) { await this.Connection.OpenAsync(); var com = new MySqlCommand("sp_AddDisToSemester", this.Connection); com.CommandType = CommandType.StoredProcedure; com.Parameters.AddWithValue("@semesterId", model.SemId); com.Parameters.AddWithValue("@disId", model.DisId); com.ExecuteNonQuery(); await this.Connection.CloseAsync(); }
public JsonResult AddDiscipline(AddSemesterDiscipline model) { this.semestersService.AddDiscipline(model); return(Json(model)); }