Revize 77667f3f
Přidáno uživatelem Vojtěch Bartička před téměř 3 roky(ů)
Backend/Backend/Controllers/AnnotationController.cs | ||
---|---|---|
106 | 106 |
[HttpDelete("/annotation/{annotationId}/{tagInstanceId}")] |
107 | 107 |
[ProducesResponseType((int)HttpStatusCode.OK)] |
108 | 108 |
[ProducesResponseType((int)HttpStatusCode.Forbidden)] |
109 |
public ActionResult DeleteAnnotationInstance([FromServices] ClientInfo clientInfo, Guid annotationId, Guid tagInstanceId)
|
|
109 |
public ActionResult DeleteAnnotationInstance([FromServices] ClientInfo clientInfo, Guid annotationId, Guid occurenceId)
|
|
110 | 110 |
{ |
111 | 111 |
if (clientInfo.LoggedUser == null) |
112 | 112 |
{ |
... | ... | |
118 | 118 |
// non-existent annotation |
119 | 119 |
try |
120 | 120 |
{ |
121 |
annotationService.DeleteAnnotationInstance(annotationId, tagInstanceId, clientInfo.LoggedUser.Id, clientInfo.LoggedUser.Role);
|
|
121 |
annotationService.DeleteAnnotationInstance(annotationId, occurenceId, clientInfo.LoggedUser.Id, clientInfo.LoggedUser.Role);
|
|
122 | 122 |
return Ok(); |
123 | 123 |
} |
124 | 124 |
catch (InvalidOperationException e) |
Také k dispozici: Unified diff
Minor rename