public async Task <ActionResult> DeleteAsync(int id)
        {
            try
            {
                if (await _houseRepository.GetByIdAsync(id) == null)
                {
                    return(NotFound());
                }

                if (await _houseRepository.DeleteAsync(id))
                {
                    return(Ok());
                }

                return(StatusCode(500));
            }
            catch (Exception ex)
            {
                return(StatusCode(500, ex));
            }
        }
 public async Task DeleteAsync(int id)
 {
     await _repository.DeleteAsync(id);
 }