Skip to content

Instantly share code, notes, and snippets.

@Macadoshis
Created May 9, 2019 16:36
Show Gist options
  • Save Macadoshis/42e038512604449357eb72b8ac94836f to your computer and use it in GitHub Desktop.
Save Macadoshis/42e038512604449357eb72b8ac94836f to your computer and use it in GitHub Desktop.
[HttpGet]
[Route("CanLoadServiceFolderOnBatch/{batchId:int}/{serviceFolderId:int}")]
public IResponseItem<IBatchServiceFolderInfo> CanLoadServiceFolderOnBatch([FromRoute] int batchId, [FromRoute] int serviceFolderId, [FromUri] int? jobContainerId)
{
return this.CreateResponse(() =>
{
var canParse = false;
if (!canParse)
{
throw new CmssValidationException(CmssMessageManager.GetMessage(Messages.MissingEntity, serviceFolderId)),
}
return new ResponseItem<IBatchServiceFolderInfo>
{
Item = Mapper.Map<BatchServiceFolderInfo>(this.batchService.GetBatchServiceFolderInfoToBeLoaded(batchId, serviceFolderId, jobContainerId))
};
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment