Fix name field & added offset update
This commit is contained in:
@@ -571,5 +571,20 @@ namespace Step.Controllers.WebApi
|
||||
return Ok();
|
||||
}
|
||||
}
|
||||
|
||||
[Route("offset/{offsetId:int}"), HttpPut]
|
||||
public IHttpActionResult UpdateOffset(short offsetId, OffsetModel offsetData)
|
||||
{
|
||||
using (NcHandler ncHandler = new NcHandler())
|
||||
{
|
||||
ncHandler.Connect();
|
||||
|
||||
CmsError cmsError = ncHandler.UpdateOffset(offsetId, offsetData);
|
||||
if (cmsError.IsError())
|
||||
return BadRequest(cmsError.localizationKey);
|
||||
|
||||
return Ok();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user