|
|
|
@ -88,11 +88,12 @@ public class Ghre_StudyRecordController : BaseController<IGhre_StudyRecordServic |
|
|
|
|
/// </summary> |
|
|
|
|
/// <param name="insert"></param> |
|
|
|
|
/// <param name="id"></param> |
|
|
|
|
/// <param name="attachmentId"></param> |
|
|
|
|
/// <returns></returns> |
|
|
|
|
[HttpPost, Route("RecordDuration/{id}")] |
|
|
|
|
public async Task<ServiceResult> RecordDuration([FromBody] InsertGhre_StudyRecordInput insert, long id) |
|
|
|
|
[HttpPost, Route("RecordDuration/{id}/{attachmentId}")] |
|
|
|
|
public async Task<ServiceResult> RecordDuration([FromBody] InsertGhre_StudyRecordInput insert, long id, long attachmentId) |
|
|
|
|
{ |
|
|
|
|
return await _service.RecordDuration(id, insert.StudyDuration); |
|
|
|
|
return await _service.RecordDuration(id, insert.StudyDuration, attachmentId); |
|
|
|
|
} |
|
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|