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

            var speciality = await _specialityRepository.GetByIdAsync(id.Value);

            if (speciality == null)
            {
                return(NotFound());
            }

            var model = _converterHelper.ToEditViewModel(speciality);

            return(View(model));
        }