This commit is contained in:
parent
0bba2d2faf
commit
e430c0a08e
@ -18,6 +18,7 @@ steps:
|
|||||||
from_secret: DOCKER_USERNAME
|
from_secret: DOCKER_USERNAME
|
||||||
password:
|
password:
|
||||||
from_secret: DOCKER_PASSWORD
|
from_secret: DOCKER_PASSWORD
|
||||||
|
context: ./HanyadikHetVan
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- ${DRONE_BUILD_NUMBER}
|
- ${DRONE_BUILD_NUMBER}
|
@ -22,8 +22,8 @@ namespace HanyadikHetVan.Controllers
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
await _weeklytimespanService.AddWeeklyTimeSpan(weeklytimespan);
|
var obj = await _weeklytimespanService.AddWeeklyTimeSpan(weeklytimespan);
|
||||||
return true;
|
return obj;
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
@ -34,15 +34,7 @@ namespace HanyadikHetVan.Controllers
|
|||||||
[HttpDelete("{weeklyTimeSpanId}")]
|
[HttpDelete("{weeklyTimeSpanId}")]
|
||||||
public bool DeleteWeeklyTimeSpan(int weeklyTimeSpanId)
|
public bool DeleteWeeklyTimeSpan(int weeklyTimeSpanId)
|
||||||
{
|
{
|
||||||
try
|
return _weeklytimespanService.DeleteWeeklyTimeSpan(weeklyTimeSpanId);
|
||||||
{
|
|
||||||
_weeklytimespanService.DeleteWeeklyTimeSpan(weeklyTimeSpanId);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
catch (Exception)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
[HttpPut]
|
[HttpPut]
|
||||||
public bool UpdateWeeklyTimeSpan([FromBody] WeeklyTimeSpan weeklytimespan)
|
public bool UpdateWeeklyTimeSpan([FromBody] WeeklyTimeSpan weeklytimespan)
|
||||||
|
Loading…
Reference in New Issue
Block a user