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