mirror of
https://github.com/opelly27/WinStudentGoalTracker.git
synced 2026-05-20 05:17:41 +00:00
latest
This commit is contained in:
@@ -87,7 +87,7 @@ public class StudentRepository
|
|||||||
public async Task<bool> AddProgressEventAsync(Guid userId, AddProgressEventDto dto)
|
public async Task<bool> AddProgressEventAsync(Guid userId, AddProgressEventDto dto)
|
||||||
{
|
{
|
||||||
using var db = Connection;
|
using var db = Connection;
|
||||||
var rowsAffected = await db.ExecuteAsync(
|
var row = await db.QuerySingleOrDefaultAsync(
|
||||||
"sp_ProgressEvent_Insert",
|
"sp_ProgressEvent_Insert",
|
||||||
new
|
new
|
||||||
{
|
{
|
||||||
@@ -98,7 +98,7 @@ public class StudentRepository
|
|||||||
p_is_sensitive = dto.IsSensitive ? 1 : 0
|
p_is_sensitive = dto.IsSensitive ? 1 : 0
|
||||||
},
|
},
|
||||||
commandType: CommandType.StoredProcedure);
|
commandType: CommandType.StoredProcedure);
|
||||||
return rowsAffected > 0;
|
return row is not null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<StudentGoalItem?> InsertGoalAsync(Guid idStudent, Guid userId, CreateGoalDto dto)
|
public async Task<StudentGoalItem?> InsertGoalAsync(Guid idStudent, Guid userId, CreateGoalDto dto)
|
||||||
|
|||||||
Reference in New Issue
Block a user