public async Task <ConsultantResponse> DeleteAsync(int id) { var existingConsultant = await _consultantRepository.FindById(id); if (existingConsultant == null) { return(new ConsultantResponse("Consultant not found")); } try { _consultantRepository.Remove(existingConsultant); await _unitOfWork.CompleteAsync(); return(new ConsultantResponse(existingConsultant)); } catch (Exception ex) { return(new ConsultantResponse($"An error ocurred while deleting consultant: {ex.Message} ")); } }