Пример #1
0
        public async Task <ActionResult> DeleteAsync(int id)
        {
            try
            {
                var result = await _propertyHandler.DeleteAsync(id);

                if (!result)
                {
                    return(StatusCode(500));
                }
                return(Ok());
            }
            catch (Exception ex)
            {
                return(StatusCode(500, ex));
            }
        }