// GET: SpecialitiesController/Delete/5
        public async Task <IActionResult> Delete(int?id)
        {
            if (id == null)
            {
                return(StatusCode(404, "Speciality not Found"));
            }

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

            if (speciality == null)
            {
                return(StatusCode(404, "Speciality not Found"));
            }


            await _specialityRepository.DeleteAsync(speciality);

            return(StatusCode(200, "Speciality Successfully deleted"));
        }