加返回参数
parent
0e0dd0c7d3
commit
49e21a6342
|
@ -22,6 +22,8 @@ using AutoMapper.QueryableExtensions;
|
|||
using IRaCIS.Application.Contracts;
|
||||
using IRaCIS.Core.Domain.Models;
|
||||
using Microsoft.Extensions.Options;
|
||||
using System.Linq;
|
||||
using NPOI.SS.Formula.Functions;
|
||||
using static Microsoft.EntityFrameworkCore.DbLoggerCategory;
|
||||
|
||||
namespace IRaCIS.Application.Services
|
||||
|
@ -3001,7 +3003,7 @@ namespace IRaCIS.Application.Services
|
|||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task VerifyReadingRestTime()
|
||||
public async Task<bool> VerifyReadingRestTime()
|
||||
{
|
||||
var userTypeEnum = (UserTypeEnum)_userInfo.UserTypeEnumInt;
|
||||
if (userTypeEnum != UserTypeEnum.IndependentReviewer)
|
||||
|
@ -3051,6 +3053,8 @@ namespace IRaCIS.Application.Services
|
|||
|
||||
#endregion
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -3058,7 +3062,7 @@ namespace IRaCIS.Application.Services
|
|||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task ResetReadingRestTime(Guid? userID)
|
||||
public async Task<bool> ResetReadingRestTime(Guid? userID)
|
||||
{
|
||||
if (userID == null)
|
||||
{
|
||||
|
@ -3085,6 +3089,7 @@ namespace IRaCIS.Application.Services
|
|||
{
|
||||
_provider.Set(startReadingTimeKey, DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), TimeSpan.FromHours(48));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in New Issue