async Task <int> UpdateStudentAsync(dlgStudent dlg, int idStudent) { using (var scope = AppSession.TypeContainer.BeginLifetimeScope()) { var dbs = scope.Resolve <IDataBaseService>(); return(await dbs.UpdateRecordAsync(StudentSQL.UpdateStudent(), CreateStudentParamWithValue(idStudent, dlg))); } }