public async Task <IActionResult> Delete(Guid?id) { if (!id.HasValue) { return(NotFound()); } var result = await positionService.DeleteItemAsync(id.Value); if (result.IsSuccess) { return(Ok()); } else { return(new JsonResult(result.GetErrorString())); } }