@@ -169,6 +169,12 @@ namespace IRaCIS.Core.Application.Services
|
|||||||
{
|
{
|
||||||
item.EnabledTime = DateTime.Now;
|
item.EnabledTime = DateTime.Now;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (await _trialSiteRepository.AnyAsync(t => t.TrialSiteCode == item.TrialSiteCode && t.TrialId == item.TrialId))
|
||||||
|
{
|
||||||
|
//---Code is not allowed to be repeated
|
||||||
|
return ResponseOutput.NotOk(_localizer["TrialSite_CodeDuplicate"]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
await _trialSiteRepository.AddRangeAsync(addArray);
|
await _trialSiteRepository.AddRangeAsync(addArray);
|
||||||
|
|||||||
Reference in New Issue
Block a user