public async void AddSemester(AddStudentSemester model) { await this.Connection.OpenAsync(); var com = new MySqlCommand("sp_AddSemToStudent", this.Connection); com.CommandType = CommandType.StoredProcedure; com.Parameters.AddWithValue("@studId", model.StudId); com.Parameters.AddWithValue("@semId", model.SemId); com.ExecuteNonQuery(); await this.Connection.CloseAsync(); }
public JsonResult AddSemester(AddStudentSemester model) { this.studentService.AddSemester(model); return(Json(model)); }