Skip to content

Commit ccc7eb1

Browse files
committed
Use interface instead of type parameter in attributes
1 parent d3e28f3 commit ccc7eb1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

IntegrationEngine/Api/TriggerControllerBase.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public IEnumerable<T> GetList()
2626
}
2727

2828
// GET api/T/5
29-
[ResponseType(typeof(T))]
29+
[ResponseType(typeof(IIntegrationJobTrigger))]
3030
public IHttpActionResult Get(string id)
3131
{
3232
var trigger = Repository.SelectById<T>(id);
@@ -36,6 +36,7 @@ public IHttpActionResult Get(string id)
3636
}
3737

3838
// PUT api/T/5
39+
[ResponseType(typeof(IIntegrationJobTrigger))]
3940
public IHttpActionResult Put(string id, T trigger)
4041
{
4142
if (id != trigger.Id)
@@ -48,7 +49,7 @@ public IHttpActionResult Put(string id, T trigger)
4849
}
4950

5051
// POST api/T
51-
[ResponseType(typeof(T))]
52+
[ResponseType(typeof(IIntegrationJobTrigger))]
5253
public IHttpActionResult Post(T trigger)
5354
{
5455
if (!ModelState.IsValid)
@@ -59,7 +60,7 @@ public IHttpActionResult Post(T trigger)
5960
}
6061

6162
// DELETE api/T/5
62-
[ResponseType(typeof(T))]
63+
[ResponseType(typeof(IIntegrationJobTrigger))]
6364
public IHttpActionResult Delete(string id)
6465
{
6566
var trigger = Repository.SelectById<T>(id);

0 commit comments

Comments
 (0)