@@ -1106,6 +1106,9 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
|
||||
[NotDefault]
|
||||
public Guid TrialId { get; set; }
|
||||
|
||||
|
||||
public bool IsHandAdd { get; set; } = true;
|
||||
}
|
||||
|
||||
public class TrialBodyPartView
|
||||
@@ -1114,5 +1117,9 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public bool IsHandAdd { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1318,7 +1318,7 @@ namespace IRaCIS.Core.Application
|
||||
|
||||
public async Task<IResponseOutput<List<TrialBodyPartView>>> GetTrialBodyPartList(Guid trialId)
|
||||
{
|
||||
var list = await _trialRepository.Where(t => t.Id == trialId).SelectMany(t => t.TrialBodyPartList).Select(t => new TrialBodyPartView() { Code = t.Code, Name = _userInfo.IsEn_Us ? t.Name : t.NameCN }).ToListAsync();
|
||||
var list = await _trialRepository.Where(t => t.Id == trialId).SelectMany(t => t.TrialBodyPartList).Select(t => new TrialBodyPartView() { Code = t.Code, Name = _userInfo.IsEn_Us ? t.Name : t.NameCN ,Id=t.Id,IsHandAdd=t.IsHandAdd}).ToListAsync();
|
||||
|
||||
return ResponseOutput.Ok(list);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user