public async Task <IActionResult> DeleteAsync(int id)
        {
            var result = await specializationService.DeleteAsync(id);

            if (!result.Success)
            {
                return(BadRequest(result.Message));
            }

            var specializationResource = mapper.Map <Specialization, SpecializationResource>(result.Specialization);

            return(Ok(specializationResource));
        }
        public async Task <IActionResult> Delete(int id)
        {
            try
            {
                var entity = _service.DeleteAsync(id);

                return(Ok());
            }
            catch (Exception)
            {
                return(BadRequest());
            }
        }