Esempio n. 1
0
        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()));
            }
        }