|
@@ -49,7 +49,7 @@ namespace GxPress.Repository.Implement.Teacher
|
|
|
public async Task<IEnumerable<Entity.tede2.Teacher.Teacher>> GetSearchAllAsync(TeacherRequest request)
|
|
|
{
|
|
|
var query = Q.NewQuery();
|
|
|
- query.Where(Q.WhereLike(nameof(Entity.tede2.Teacher.Teacher.Name),$"%{request.KeyWord}%"));
|
|
|
+ query.WhereLike(nameof(Entity.tede2.Teacher.Teacher.Name), $"%{request.KeyWord}%");
|
|
|
var result = await _repository.GetAllAsync(query);
|
|
|
return result;
|
|
|
}
|
|
@@ -60,7 +60,7 @@ namespace GxPress.Repository.Implement.Teacher
|
|
|
|
|
|
public async Task<int> InsertAsync(Entity.tede2.Teacher.Teacher note)
|
|
|
{
|
|
|
-
|
|
|
+
|
|
|
return await _repository.InsertAsync(note);
|
|
|
}
|
|
|
|