@@ -163,10 +163,10 @@ namespace IRaCIS.Core.Application.Service
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpDelete("{id:guid}")]
|
||||
public async Task<IResponseOutput> DeleteAttachment(Guid id)
|
||||
[HttpPost]
|
||||
public async Task<IResponseOutput> DeleteAttachment(DeleteAttachment inDto)
|
||||
{
|
||||
var success = await _attachmentrepository.DeleteFromQueryAsync(t => t.Id == id, true);
|
||||
var success = await _attachmentrepository.DeleteFromQueryAsync(t => inDto.Ids.Contains(t.Id));
|
||||
return ResponseOutput.Ok();
|
||||
}
|
||||
|
||||
|
||||
@@ -40,6 +40,11 @@
|
||||
public bool IsAuthorizedView { get; set; }
|
||||
}
|
||||
|
||||
public class DeleteAttachment
|
||||
{
|
||||
public List<Guid> Ids { get; set; }
|
||||
}
|
||||
|
||||
public class GetTrialDoctorSelectInDto
|
||||
{
|
||||
public Guid TrialId { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user