public async Task <SaveDependentResponse> SaveAsync(Dependent dependent) { try { await _dependentRepository.AddAsync(dependent); return(new SaveDependentResponse(dependent)); } catch (Exception ex) { return(new SaveDependentResponse($"An error occurred when saving the category: {ex.Message}")); } }