public async Task <IActionResult> Edit(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var establishment = await _establishmentRepository.GetByIdAsync(id.Value);

            if (establishment == null)
            {
                Response.StatusCode = 404;
                return(View("EstablishmentNotFound", id.Value));
            }

            return(View(establishment));
        }